Hi All,
I am trying to write data in sqlite table.
after 8189. rows code crash and getting “stack overflow” error…
and more a small issue.
txtStatu.text= i … “/” … j
line does not work until crash. Screen not refresh?
Who can help me?
Thanks in advice.
[lua] local j = 100000
local func= nil
local statuUpdate= nil
local i = 1
statuUpdate = function(event )
if ( i < j ) then
local tablefill =“INSERT INTO XXX VALUES (NULL,” … o.item …")"
db:exec( tablefill )
i = i + 1
func()
else
if( o ~= nil ) then
o=nil
end
end
end
func = function()
txtStatu.text= i … “/” … j
timer.performWithDelay( 100, statuUpdate() )
end
if i==1 then
func()
end
[/lua]