[Iup-users] bug with iup and table insert?

Merick Merick_TeVaran at comcast.net
Wed Oct 10 11:10:40 GMT+3 2007


Antonio Scuri wrote:
>   I took a look at your first example but it was too big.
>
>   Can you make a more simple example so I can debug the situation here?
>
> Best,
> scuri
>
>   
Here, try this one:

button = iup.button{title = "table.insert()"}
function button.action()
    test = {}
    table.insert(test, 1)
    return iup.default{}
end

dlg = iup.dialog{button}

dlg:popup(iup.CENTER, iup.CENTER)

iup.MainLoop()


When I run this script, it will pop up the dialog with the button, but 
when you click the button it crashes my interpreter



More information about the iup-users mailing list