Ok. I got the crash here too. Thanks for the sample. I will debug this
on monday.
Best,
Scuri
On Sat, Jul 5, 2014 at 6:18 AM, Milind Gupta <[email protected]> wrote:
> Hi,
> I made a single lua file that replicates the problem on my computer.
> The file requires iuplua and iuplua_pplot. It creates a timer action call
> back function (Line 144) which is called every 100ms. At each call back it
> executes an instruction from the table ins defined in line 151. The list of
> instructions are to create 3 plot objects, adds data to them, then creates
> 3 dialogs. It then adds 1 plot to each dialog and then adds them to a table
> (destroyWinQ) so that the dialogs are destroyed as soon as they are closed.
> After all this is done then it prints a message on the prompt asking you to
> try closing any dialog. As soon as 1 dialog is closed it tries to destroy
> the dialog object and then lua crashes.
> If you can replicate the issue using this file it would be great.
>
> Thanks,
> Milind
>
>
>
>
> On Fri, Jul 4, 2014 at 9:45 AM, Antonio Scuri <[email protected]>
> wrote:
>
>> Hi,
>>
>> I don't know. Couldn't figure it out just from your explanation. If you
>> could reproduce this in a small sample then I will be able to reproduce the
>> problem here.
>>
>> Have you tried to NOT detach any controls and then destroy the dialog
>> just to see what happen?
>>
>> Best,
>> Scuri
>>
>>
>>
>> On Thu, Jul 3, 2014 at 5:00 AM, Milind Gupta <[email protected]>
>> wrote:
>>
>>> 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
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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