Hello guys.
My code was working fine until today where i modified. Of course I try to retrace my steps but for some reason it is not enough! Now I am getting the following error:
Runtime error
assertion failed!
stack traceback:
[C]: ?
[C]: in function ‘assert’
?: in function ‘getOrCreateTable’
?: in function ‘addEventListener’
?: in function ‘addEventListener’
…clairdm\DOCUME~1\CORONA~2\Sandbox\129\gameScreen.lua:949: in - 32,768 bytes
AND HERE THE INFAMOUS 949 LINE!
#949 line-----> Runtime:addEventListener( “enterFrame” ,main )
If I remove that line I do not get the assertion error any longer but of course nothing is update on the screen. The main() has my logic but EVEN if comment everything single line of code in the main() it still gives me the error. The only way to get ride of the error is to comment the Runtime:addEventListener( “enterFrame” ,main )
I have other Runtime event listerners after line #949 but the only one causing problem is the line #949
It is kind of hard to past the complete code and also hard to give a simplify version but in essence that what I do (using director 1.2)
1- init() the game (loading properyBag…)
2- start runtime listener like enterframe and button touch,joystick…
3- Main(): main loop where a update game objects and so on.
What’s killing me is that worked before my couple of modifications today. Again I tried to retrace my steps but no luck.
I guess i am not asking someone to find my errors (I am still continuing to see what I did wrong) BUT I would really be curious what could prompt this type of assertion error? I am used to errors where the terminal says something like problem on line X and I am usually pretty good a finding the problem but I have to admit I am STUCK now:(
Any pointers on what usually brings assertion errors would be most appreciated it!
Thank you guys.
Mo
[import]uid: 49236 topic_id: 13073 reply_id: 313073[/import]