|
From: Tatsuro M. <tma...@ya...> - 2010-10-04 23:30:58
|
Hello This is well known issue for windows console applications. The octave also has the similar issue. However, to avoid this issue one have to trap CTRL_CLOSE_EVENT (that is you described as clicking on the x at the upper right corner) using SetConsoleCtrlHandler function, which is the win32api function. However, I have tried to trap CTRL+C by this api function to overcome the SIGINT issue for gnuplot for windows, the results was not successful. I can try to fix CTRL_CLOSE_EVENT issue but I do not have any confidence to avoid to it. One possible way to treat the issue in tricky way is to execute gnuplot.exe on the cmd.exe wrapper application like 'ckw'. I am using the Japanese software the ckw downloaded from http://sites.google.com/site/craftware/ckw/download/ckw-0.8.10-mod4-20100508.zip The reference is translated by me. http://www.tatsuromatsuoka.com/ckw/Reference-en.txt Known bug for the ckw-0.8.10-mod4-20100508. If the ckw command is execute by shortcut, it fails to hide the cmd console. To avoid this, you execute ckw using the start command in the cmd. cmd /c start ckw (options) Please also see the help of start command by typing 'help start' at cmd prompt. Regards Tatsuro --- Petr Mikulik wrote: > > I've tried the latest distribution from > > http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin/, and the fix is > > confirmed! > > > > However, I've found something else. Steps to reproduce: > > > > 1) Start gnuplot.exe - either from an Explorer window or from the console > > 2) Plot anything - for example 'plot x' > > 3) Close the window, not by typing exit, but by clicking on the x at > > the upper right corner > > 4) Observe the error window: 'Application error: The instruction at > > "0x00000000" referenced memory at "0x00000000". The memory could not > > be "read".' > > > > It's always 0x00000000, and it's 100% reproducible on both Windows XP > > (32 bit) machines I've tried. > > > > Notes: this happens only with gnuplot.exe, but not with wgnuplot.exe. > > Also, this doesn't occur if you change the terminal to "windows" > > instead of "wxt". > > I set wine to "winxp" and gnuplot.exe works correctly. > > --- > PM > > -------------------------------------- Learn more about breast cancer - Pink Ribbon Campaign 2010 http://yj.pn/JAy9L7 |