Strange error returning from function!

Started by
2 comments, last by Tac-Tics 18 years ago
Can anyone explain this? I'm not doing anything unusual to trigger it, just returning from a VOID function.... Thanks for your advice! Simon
Advertisement
Try debugging and finding where the problem is, then posting the code surrounding that problem.
run app in debug mode in ide?

Kuphryn
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.

This topic is closed to new replies.

Advertisement