I am in big big trouble. Please help. I have created a game for my client. It works fine when I run it from the Visual Studio 2008( in both release and debug configuration).
But when I run its stand alone exe (or making setup project) it does not work perfectly fine. It works but it does not work completely fine,and the problem is consistent(It shows the same problem every time, when I compile and run stand alone exe).
I had this problem in the past too but luckily I solved it.The way that problem was solved is very unusual:- Every thing was working perfectly fine and then I made some modifications in the code.The application started showing the same unusual behavior as described above.Then i started rolling back the modifications in the code one by one. The game started working perfectly fine when i removed a particular variable from a class and it uses.Then I checked all the C++ rules and every thing but found no issue in my implementation.Even every thing was working fine when i run from the Visual Studio. But I needed that variable and its uses in the game for some functionality of the game.So, that time I declared the variable in PUBLIC (previously it was a protected variable) and every thing worked perfectly fine.
I am very surprised to see this unusual behavior, whenever i declare the variable as PROTECTED there is problem but if I copy and paste in Public the problem is solved.(The variable is only being used in the Class where it is declared so there should not be any problem).
Please Help me I am again getting this unusual problem and not getting any solution this time.
Please tell me what may cause this problem. Thanks Tarun