View previous topic :: View next topic |
Author |
Message |
DanRRight
Joined: 10 Mar 2008 Posts: 2816 Location: South Pole, Antarctica
|
Posted: Tue Jun 25, 2019 3:42 am Post subject: Anyone will check if my prog crashing on your computer? |
|
|
I have couple programs which annoy me to the hell crashing with one of %pl plots (or possibly with one of specific input data) on *ALL* my computers. Crash happens in the area where user has no access to fix it by himself (simpleplot_redraw@ and property sheet %ps). I have sent one of programs which plots XY plot with %pl to Silverfrost but damn thing in its true devilry manner does not crash there, so the fixing process is kind of stalled. Can anyone try my program and tell me if is it OK or not on your PC? I send the source and data, you will just compile and run it |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Tue Jun 25, 2019 9:40 pm Post subject: |
|
|
Count on me Dan. Drop me a PM. _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri Jun 28, 2019 2:38 pm Post subject: |
|
|
This program has highlighted possible pitfalls when using %lw to leave windows open. This applies to 64 bit code in particular and is probably not an issue with 32 bit executables. As a result I have added the following comment to cwplus.enh for the next release.
%lw can be used to leave one or more windows open but care should be taken avoid arriving at the runtime "END PROGRAM" point in the code with windows still open. This can result in your working memory being released to the system and being used elsewhere causing your data to be corrupted whilst still in use by ClearWin+.
If necessary, a call can be made to the routine STOP_WHEN_WINDOWS_CLOSE@, before "END PROGRAM" in order to avoid a premature exit. It has the following interface which will be written into clearwin.ins etc. for the next release.
C_EXTERNAL STOP_WHEN_WINDOWS_CLOSE@ '__do_winio' |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2816 Location: South Pole, Antarctica
|
Posted: Fri Jun 28, 2019 3:55 pm Post subject: |
|
|
Thanks Paul, would be great if this will fix the problem which was causing codes behave behave so unpredictably and irrationally, in true devilry manner. %lw is very useful part of GUI. %lw[owned] is also very handy. %lw allows to look at the parameters of running code without interrupting its execution. Or code will inform and warn you with popup windows and continue running.
Thanks all who participated! |
|
Back to top |
|
|
|