This topic is now archived and is closed to further replies.


Werid Problems after compiling..

Recommended Posts

UponTheEnd    122
have any of you ever had the problem of when you are developing, you hit the, "Compile and Run" button.. and it runs just fun after it compiles. But when you compile and dont run it, and go to the directory where the .exe file is, and move it to where the data is. it gives entriely different results. As for me, when i run it, on the window, it copys the background of the window of the desktop and that becomes the window, it isnt taking any of the opengl commands. errrr Everything works fine though when i just hit the compile and run button though.. if you need code, just say so, i was thinking that this was a problem that others have had and it is an easy fix.... thx

Share this post

Link to post
Share on other sites
Corrail    133
Yes, I had some problems like this before.

I made some mistakes with dynamic memory handling. Are you sure that you allocate and delete memory correctly? Are you sure that you don''t write in memory which isn''t allocated?

Try to debug with the _CrtCheckMemory() function. If _CrtCheckMemory() is false than your memory has errors.

MS C++ works very fine in Debug mode within the MS C++ enviroment. But if run the program outside MS C++ enviroment there many occure problems.


Share this post

Link to post
Share on other sites