Program crashes on startup
- npissoawsome
- Posts: 114
- Joined: June 8th, 2012, 3:01 pm
Program crashes on startup
My game runs fine when I run it through visual studio (debug and release) but when I actually go find the .exe and run it, it crashes on startup. Does anyone know how I could possibly debug this, or any ideas on what could cause it?
Re: Program crashes on startup
Hi npissoawsome,
My guess is this. Seeing as it works in Release and debug and then the exe crashes is it looking for an image file or a sound file that you haven't copied into your release or debug folders?
My guess is this. Seeing as it works in Release and debug and then the exe crashes is it looking for an image file or a sound file that you haven't copied into your release or debug folders?
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
Re: Program crashes on startup
in game.cpp go to the constructor that is made there ( the Game::Game( HWND ...etc ) one ) and look at the loading functions, what Asimov says is true, so you need to take the files from the solution folder and plop them beside the exe.
- npissoawsome
- Posts: 114
- Joined: June 8th, 2012, 3:01 pm
Re: Program crashes on startup
bravo, spot on my bmp's weren't in my folder, I was under the impression that they got compiled into the .exe
Re: Program crashes on startup
Hi npissoawsome,
With Chillies help I have got my images loading from a resource file, which means they are compiled into my exe. I want to do the same with sounds later, but content to carry on with the game for now heh heh.
With Chillies help I have got my images loading from a resource file, which means they are compiled into my exe. I want to do the same with sounds later, but content to carry on with the game for now heh heh.
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk