Jump to content
  • Advertisement

Archived

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

Unhandled exception: User breakpoint?!

This topic is 5392 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

In my program after some calls to fclose() it gives me a Unhandled exception: User breakpoint error in dbgheap.c in the following line: _ASSERTE(_CrtCheckMemory()); in the _freebuf() function. The file was opened without problem, was read and wrote to without problem and yet I get this stupid error. Any ideas what can be causing it?! Did it happen to anyone here? "C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
Advertisement

if ((file = fopen(strFile,"w"))==NULL)
return;

fwrite(buf,i-15,1,file);
fclose(file);



This function is being called around 15 times before crashing in fclose().

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
what was the problem?

Share this post


Link to post
Share on other sites

  • 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!