Odd Bug!

Something strange happening to my very simple scene changing project in the simulator. Sometimes it works perfectly, other times it crashes at exactly the same point. i am using Director Class.

Because the project has played right through, this makes me think the code is OK and although I am not an experienced coder, the code has been looked at by a more experienced Corona user. The problem is with two buttons on one of my screens. One button works OK and then next time crashes the simulator! The other button is more stable but seems to crash after a few 'toggles. The screen in question has a third button and this works perfectly all the time. The two buttons causing problems are re-used with identical code on other screens and work perfectly well.

Hope people can provide some idea of what might be happening and a solution.

Thanks

Bob
[import]uid: 45029 topic_id: 10266 reply_id: 310266[/import]

can you post the code so some one can see and find error(s) if want to show only example then there are lots of example in code exchange

[import]uid: 12482 topic_id: 10266 reply_id: 37456[/import]

I have fixed it and the problem was simply my lack of ‘underlying’ knowledge of not only Corona but coding in general. I couldn’t understand why sometimes it worked and other times it didn’t…then I noticed that the button causing most difficulty (which was designed as a gift tag with string)
the string part was actually off the screen!

Because I have no knowledge/experience of this stuff, I didn’t realise that this was the problem.
So although the code was fine, I am sure if anyone had been able to see it visually, the problem
would have jumped of the screen.
[import]uid: 45029 topic_id: 10266 reply_id: 37471[/import]

nice to hear problem solved!!!
:slight_smile: [import]uid: 12482 topic_id: 10266 reply_id: 37555[/import]

+1

c [import]uid: 24 topic_id: 10266 reply_id: 38082[/import]