Suddenly the boolean flag value is disappeared!?....Problem in reload bullet

I got the problem about making bullets.
The logic is simple as normal bullet system uses.
When the bullet is out of the screen, I set the move flag(boolean) is false. When the move flag is false, the bullet will be reload and then the flag will be true.

The bullet reloaded for a while and suddenly did not reload and what made me so surprise was the move flag value was empty.
The output from print() is
true
true
(blank)
(blank)
!! I was shocked so I tested and with 0 and 1 instead of true and false.
I got only the same result(bullet suddenly stopped reload) but there are no (blank) in print() debug. I got only “1” as false value.

It looks like the program is suddenly stopped.
My scene has only bullet so, it should not be complicated. I use corona sdk for windows.
Do I miss some important information about API? Any advice?? [import]uid: 65906 topic_id: 16794 reply_id: 316794[/import]

Sounds like the bullet is being removed after a certain amount of time, but unless you post code there’s no way to know what’s going on. [import]uid: 9422 topic_id: 16794 reply_id: 62861[/import]

@XenonBL
I did not use any timers and I found that when I make bullet move with certain amount of value, everything is fine. It is really hard to say what I found is a true reason for the problem or not. Need the specialist to confirm…

I use cos/sine for bullet movement.
I found that when the value is like 200.00552582220…
Everything is stop.
And I set the angle in the minus value, also got the same problem.

I am not sure that
[lua]if(object.y > 200)then
reset flag…
end [/lua]
I wonder that object.y = 200.00552582220… is more than 200 or not in the programing.
That is kind of caused for the problem.
But I still want to know the explanation for this.
Though,the formula is same as I did in C++ … and everything is fine [import]uid: 65906 topic_id: 16794 reply_id: 62926[/import]