lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thanks for your help.   Simon has added a lua line call when closing the VM of

If iup and iup.Close then iup.Close()

which means if iup has been required it's closed.  This seems to be working.


On Thu, 6 Jun 2019 at 21:39, Antonio Scuri <antonio.scuri@gmail.com> wrote:
  Sorry I don't know what's going on. It seems to be garbage stored at IUP side when the Lua context is destroyed but the IUP internal context is not. But I checked what's stored from Lua and it seems to be refresh when iuplua is initialized again.

  So, if iup.Close is called, the scripts work ok? The problem does not occurs, right?

  The maybe you could force a iup.Close on a Lua error. Because Lua errors are trapped by iuplua, if the application does not overwrite that behavior.

Best,
Scuri


Em qui, 6 de jun de 2019 às 11:06, Jane Taubman <janetaubman@gmail.com> escreveu:
When you run it the second time.  The dialog appears and then after a few seconds it and the application which is hosting it both close.

--


--
Jane.

Jane Taubman | www.rjt.org.uk | www.taubman.org.uk | www.fhug.org.uk