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