I have a program that is producing a Windows Illegal Operation error in itself when executing a certain line of code.

When I run the program in the environment, the variables contain the right numbers and the program executes properly.

Then I compile and run the stand-alone EXE and when it runs this exact operation I get a Windows Illegal Operation Error. The program caused a fault in itself at registers etc. etc.

Anyone know why it works flawlessly in the environment, but errors when run as a stand alone????

Any leads or information would be helpful and greatly appreciated...

thanks!