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

Reply via email to