Program runs fine in Debug mode but not without?

Blitz3D Forums/Blitz3D Beginners Area/Program runs fine in Debug mode but not without?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If anyones interested I pinpointed it to the mouse commands. It seems that using the MoveMouse command before the Mousedown commands causes the problem .. I'm not convinced that this was the problem though.

Is it possible that when I click on 'Run Program' on the menu, and the mousepointer x position on the desktop (1280,1024) is outwith the graphics window width (640,480) , MouseXSpeed() has problems with. i.e. I have to movemouse to a point within the window before I use the commands?

Anyhoo, I'm waffling now ...

jx# = (MouseXSpeed()/7.0)
jz# = (MouseYSpeed()/7.0)
thrust = MouseDown(1)
shoot = MouseDown(2)
MoveMouse 320,240