I'm using Visual c++ 2005 Express and I've written a program using irrlicht. When I run the program from the IDE's debug menu (either with or without debugging) the program runs as expected but when I double click the exe the screen is black with the cursor but nothing else. currently I'm only using Draw2DImage and Draw2dLine.
My Textures are loaded from absolute paths so thats not the problem.
I realy can't think of what would be different about starting the program from the IDE or windows. If anyone has any ideas please let me know
Program working only when run from IDE
I am having same problem
I am having the almost same problem I am quite new to Irrlicht..... you mentioned - visibility flag .. How do you initialize it ?? and what else could lead to such problems??
The exact problem with my app. is that my exe crashes as soon as it begins to draw geometry.
Please help
The exact problem with my app. is that my exe crashes as soon as it begins to draw geometry.
Please help
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
If you don't create custom scene nodes you don't need to initialize them, otherwise just initialize all required attributes of the new class. Setting the visibility flag can be done via setVisible(). Your crash is realted to null pointer dereferencing, probably due to a null texture or null mesh caused by a load failure.