Jump to content
  • Advertisement
Sign in to follow this  
timmay314

Enet crashing only in release mode?

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

I have an app using ENet and it works fine. My client app can connect and send a packet, then disconnect. However, if I try to make my server do the same thing, the app crashes when I call enet_packet_create(). Even more interesting, it works fine when in debug mode, but in release mode it won't work. I check the values of the parameters to enet_packet_create using message boxes and they all seem valid. The problem seems to be in a call to malloc by enet. Any idea what could be going on here?

Share this post


Link to post
Share on other sites
Advertisement
Fixed the problem, I had a buffer overflow elsewhere that somehow caused it, I'm just surprised the debugger didn't catch it.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!