Jump to content
  • Advertisement
Sign in to follow this  
prisoner42

heap space corruption glfwOpenWindow

This topic is 2751 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi

anyone ever had a heapspace corruption with glfwOpenWindow I thought i was originally getting an error because of pointers but after debugging it happens when i call glfwOpenWindow any idea whats going wrong?

// Open an OpenGL window
if( !glfwOpenWindow( WIDTH,HEIGHT, 0,0,0,0,0,0, GLFW_WINDOW ) )
{
glfwTerminate();
exit( EXIT_FAILURE );
}

I get this error in the output window
HEAP: Free Heap block 4c7b58 modified at 4c7b80 after it was freed
Windows has triggered a breakpoint in test.exe

and then i get another error when i exit

My application will run fine other than this but its driving me nuts

Share this post


Link to post
Share on other sites
Advertisement
You're writing over the bounds of a block of memory somewhere. Check all of your arrays, try commenting out bits of code til you find out what the offender is.

Share this post


Link to post
Share on other sites
I had a copy constructor problem where i was initializing some pointers then deleting them to initialize new ones so that when i exited It tried to delete them again or something like that thanks anyway had nothing to do with glfw oops

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!