Access violation(segmentation Fault)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
azureflamegod2
Posts: 2
Joined: Wed Jul 25, 2007 9:37 pm

Access violation(segmentation Fault)

Post by azureflamegod2 »

When i run my project each time it keeps crashing a few seconds after it's ran and the Access Violation (Segmentation Fault) window pop-up appears. Then the debugger points to one of my functions that returns the irrlicht device. I've tried everything that i know and it won't go away :x



I'm using Dev-C++ and using the 1.3 version of irrlicht also the debugger doesn't point to anything else. If anyone has any suggestions please reply.

Code: Select all

IrrlichtDevice* game_manager::getirrDevice()
{
 				return irrDevice;
}
If anyone needs more specific information i'll try to help...
Saturn
Posts: 418
Joined: Mon Sep 25, 2006 5:58 pm

Post by Saturn »

To tell more you have to post the whole stack trace, not just the last line. But from the looks of it your game_manager instance is probably invalid. Either already deleted or the pointer you use is uninitialised or NULL or something like this. So best debug it again and look at the pointer to your game_manager you use to call getIrrDevice.
Cear
Posts: 45
Joined: Wed Jul 18, 2007 9:31 pm

Post by Cear »

when i debug with dev im getting that same segmentation fault.
i posted about it right above this post.

it all started with terrain collision....
nulldragon
Posts: 3
Joined: Wed Jul 25, 2007 4:09 pm

Post by nulldragon »

something that helps me when i get errors/crashing like that i comment out all of the last code i did and recompile, if it all works fine i uncomment a few lines at a time until i find what is causing the error/crash
azureflamegod2
Posts: 2
Joined: Wed Jul 25, 2007 9:37 pm

Post by azureflamegod2 »

I ran the debugger again and i found out that all my functions that return the irrlicht device, the scenemanager, the driver all cause access violations and this problem just start to happen not long ago. i'm thinking about downloading the new version of irrlicht(1.3.1) and trying my luck :wink:
Post Reply