开发者

Program breaks when not running with debugger attached

I'm working on a 2D engine, it's written in C++ and I use Microsoft Visual Studio 2010 on Windows 7 64 bit.

I use OpenGL for hardware acceleration, and am now experimenting with framebuffers for using textures as canvas. (For things like allowing the user to paint on the screen)

Now this framebuffer works fine, as long as I start the program with the debugger attached (F5)

If I start the program from outside t开发者_JS百科he IDE, or start it without the debugger (CTRL+F5), I can't paint to the texture, but get flickering and OpenGL stack underflow errors every frame.

  • I really don't know where to start searching for the problem, can you please help me?


I can't be sure, but it could be one of several things:

  • uninitialized variables that a debugger (sometimes) initializes to 0
  • race conditions that don't show since the timing is now all different
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜