Segmentation fault using ActivateGadget()

BlitzMax Forums/MaxGUI Module/Segmentation fault using ActivateGadget()

Scaremonger(Posted 2014) [#1]
Firstly; Merry Christmas to all.

I have been seeing some weird Segmentation faults in one of my apps and tracked it down to ActivateGadget(). The below example has been created with the same issue.

When you run it, edit one of the fields and then click on the other one...

If you comment out the ActivateGadget() call in MakeReadWrite() the application runs fine (but without receiving focus).

I am developing this on XUbuntu 12.04; I have not tested it on Windows.

Any suggestions?




Scaremonger(Posted 2014) [#2]
Well I re-wrote the event loop a little during debugging and found something else that is weird - After clicking a label and then Clicking on the window background, focus is removed from the TextField but MaxGUI does not generate a LOSTFOCUS event!




Henri(Posted 2014) [#3]
Hello,

seems to work ok on Windows. For Linux Bruceys GTKMaxgui driver might work as MaxGUI's fltk implementation is a bit rusty.

-Henri