Hi,
I have a dialog which if I destroy causes Lua to crash.The dialog
has nested vboxes and hboxes and those have plots in them. At first I
detach all the plots since I do not want to destroy them and then I destroy
the dialog assuming that it will destroy all the nested hboxes and vboxes.
All the hboxes and vboxes are also linked inside a hierarchical table
but after destroying the dialog I also set that table to nil.
If I just comment out the Destroy line then the crash goes away. What
could be causing this?
One thing I do notice in the Close_CB function is that if I destroy
the dialog in there then I need to return iup.IGNORE. I am not destroying
the dialog in that function (I do not have that function defined for this
dialog) but in a timer expiry event happenning every 10ms. It checks if the
dialog is not visible then destroys it. Could it be calling the close_cb
function and trying the destroy there too causing the crash? If yes how can
I overcome it?
Thanks,
Milind
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users