Jump to content
  • Advertisement
Sign in to follow this  
sipickles

Strange error returning from function!

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

Can anyone explain this? I'm not doing anything unusual to trigger it, just returning from a VOID function.... Thanks for your advice! Simon

Share this post


Link to post
Share on other sites
Advertisement
That is most likely a Segmentation fault. That is, through a pointer or array, you exploded your program.

To fix it, you should (as said above), debug your program. Look at the stack trace (the list of functions your program was inside when it blew up). The ones at the top will probably be system-level code (ignore it) and the topmost function that you wrote is going to be the culprit. See if you can't figure out which pointer/array caused the problem.

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!