While loop

Nov 11, 2012 at 3:10am
I got some code in a while loop that is in a simple console program

1
2
3
4
5
while(TRUE)
{
//CODE HERE

}


every time I exit the program it gives me a error. I ran debug and get this on the break
 
mov         byte ptr [eax],0 


any help with this problem?
Last edited on Nov 11, 2012 at 3:11am
Nov 11, 2012 at 3:19am
This caused by the complier, not your code.
And if your code is allowed, this will hang up your system.
The complier is very intelligent so it can optimize perfectly your code and detect some basic error, such as (your continuous with no code)
Or maybe this error is caused because of invaild pointers.
Last edited on Nov 11, 2012 at 3:21am
Nov 11, 2012 at 5:16am
Use true not TRUE.

But don't use infinite loops - there are valid situations to use them, I am guessing that because this is a simple program, there will probably be no need. It would be pure speculation to say anything else without seeing your code.

Can you post your actual program?
Topic archived. No new replies allowed.