hi
i have finish my game and it run very well when i run it inside visual studio
but when i try to run it from exe file it run and when i chose the mission and start it the game is close , i used code block but no useful
what is solution to make my game run from exe with out stop or close?
is the dll and all of the models and textures and fonts placed in the same directory formation as it was when running in visual studio? If you compile it then copy the exe into the main folder of the project then it should run just fine . I think it is failing to find something and just closes because it can't continue or errors.
If you run your exe from VS it starts in the directory there the projectfile is placed (normally). If you want to change this you can set a different startdirectory in the projectoptions under the point Debugging. Or you copy the exe/dll into your projectdirectory.
thank you for replying , i put the exe dll in the main directory but the problem is remain , i thing the problem in irrlicht engine when the game media and source code is became big the engine not work good with the memory .
You say you tried moving the files, but I thought I'd post this here anyway (just in case)
This code /should/ resolve your working directory to the folder your EXE resides in. (In Windows anyway)