I have no idea. WHen I have some time I'll run your test code to see
where it is crashing.

  But why to preserve Lua, CD and IM but not IUP?

Best,
Scuri


Em sex., 24 de jul. de 2020 às 17:03, Eves, Brian <brian.e...@nrc-cnrc.gc.ca>
escreveu:

> Hi,
>
>
>
> I use lua scripts to control hardware for experiments and use a
> single lua_State to execute different lua IUP scripts so that state
> information can be retained between scripts. I've encountered a problem
> that can be replicated using the attached files.  The main.cpp file simply
> creates a lua_State and executes a single script five times in a row. The
> lua script pops up an iup.filedlg, prints the chosen file name to stdout,
> and then shows a simple dialog with only one button that ends the script.
> The first execution of the scripts works fine, but on the second execution
> the program crashes. If the iup.filedlg is moved into the button callback
> then the script executes five times without any problems.
>
>
>
> Am I doing something wrong cleaning IUP between running the scripts?
>
>
>
> Thanks for your help,
>
>
>
> Brian
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to