Hi Helen, > Are there any known issues I should be aware of. And if so, are there any workarounds?
No > If this isn’t a known issue, any suggestions about how I might debug it? No, too. It seems that something destroyed the IUP elements that are reused in the second call. I think you should take a look of what's being done (or not being done) between one call and the next. Are iup.Close being called? Is the dialog being destroyed? If not maybe it would be interesting to destroy that dialog and create it again in the next call to avoid the problem. I would ask you for an example, but I know you are running inside "Family Historian". Best, Scuri Em seg., 7 de set. de 2020 às 14:10, <helen.wri...@atiras.com> escreveu: > I’m trying to debug an intermittent crash involving IUP and Lua, but need > help/advice. > > > > The error text returned says: > > > > Lua error > > iuplua.lua:108: bad argument #1 to 'GetAttribute' (invalid Lua object, > destroyed iupHandle in C but not in Lua) > > stack traceback: > > [C]: in function 'iuplua.GetAttribute' > > iuplua.lua:108: in metamethod '__index' > > ...(x86)\ProgramName\Program\Lua\ourmodule.lua:635: in function > <...(x86)\ProgramName\Program\Lua\ourmodule.fh_lua:606> > > (...tail calls...) > > [C]: in function 'iuplua.Popup' > > ...(x86)\ProgramName\Program\Lua\ourmodule.lua:707: in function > 'ourmodule.getParam' > > [string ""ourfilepath ..."]:344: in function 'doDetail' > > [string ""ourfilepath ..."]:150: in function <[string > "C:\ProgramData\Calico Pie\Family Historian 7 ..."]:149> > > (...tail calls...) > > [C]: in function 'iuplua.MainLoop' > > [string "ourfilepath ..."]:139: in function 'main' > > [string "ourfilepath ..."]:1059: in main chunk > > > > The error typically happens (but not inevitably) when a user: > > > > - Invokes a popup dialog (not using iupGetParam but constructed as a > custom dialog) > - Exits without making any changes > - Re-enters the same dialog and alters data > - Presses OK > - The error occurs. > > > > Are there any known issues I should be aware of. And if so, are there any > workarounds? > > > > If this isn’t a known issue, any suggestions about how I might debug it? > > > > Thanks > > > > Helen > > > _______________________________________________ > 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