JQT.exe crashes on Windows 7 32bit, when using

 

   wd 'mb open ...'

   wd 'mb open1 ...'

   wd 'mb save ...'

 

Right after loading the following script, everything is working.

After a few minutes, when pressing the button again, jqt.exe

crashes.

This happens only on Windows. On Mac and Linux there is no

problem.

 

NB. **************************************************

NB. GUI definition

qtct_win =: 0 : 0

   pc qtct;

   pn QtCrashTest;

 

   bin v;

 

   cc but1 button;

   cn Press to crash Qt;

 

   cc tex1 edit readonly;

)

 

NB. GUI initialization

qtct_run =: 3 : 0

   wd 'reset'

   wd qtct_win

   wd 'pcenter'

   wd 'pshow'

)

 

NB. GUI termination

qtct_close =: 3 : 0

   wd 'pclose'

)

 

NB. Select original bitmap

qtct_but1_button =: 3 : 0

   wd 'set but1 focus'

NB.   ifn =. wd 'mb open  "Select Bitmap-Image" "" "Bitmap (*.bmp)"'

NB.   ifn =. wd 'mb open1 "Select Bitmap-Image" "" "Bitmap (*.bmp)"'

   ifn =. wd 'mb save  "Select Bitmap-Image" "" "Bitmap (*.bmp)"'

   ifn =. >0{(LF splitstring ifn)

   wd 'set tex1 text ',ifn

)

 

NB. Run GUI when file is loaded

NB. Comment out, if you want to use this file as a library

qtct_run''

NB. **************************************************

 

Thanks in advance.

 

Kind Regards

 

Martin

 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to