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
a tip: be shure that all your variables are initialize...
it seems that the visual studio init all ur uninitialize variables for u and if u run ur app outside of vs, nobody init ur vars
please set the warning level in the project settings a little bit higher, to see which var is uninitialize
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.
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.