Also the crash happens after the timer action_cb function ends i.e. after
execution of a couple of statements till it reaches the end of the function
and transfers control back to MainLoop.
Thanks,
Milind
On Thu, Jul 3, 2014 at 12:58 AM, Milind Gupta <[email protected]>
wrote:
> Another important observation is that it works fine if there is just 1
> such dialog. If there are multiple dialogs and one of them is closed then
> only lua crashes.
>
> Thanks,
> Milind
>
>
>
> On Wed, Jul 2, 2014 at 11:50 PM, Milind Gupta <[email protected]>
> wrote:
>
>> 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