General Question Orbiter.exe runtime error logs

thepenguin

Flying Penguin
Addon Developer
Joined
Jul 27, 2013
Messages
220
Reaction score
2
Points
16
Location
Earth-Moon Lagrange Point (L4)
I am currently working on a vessel addon that compiles fine, but then crashes orbter when I try to load a scenario with it. Are there error logs hidden somewhere for debugging this kind of problem, or do I just have to guess about what's wrong and hope I get it right?
 
If you don't know how to use the debugger, you'll have to go through the program line by line where the last change was made.

Start with pointers. If you used any of them, they're the likely cause.
If you're using manual memory allocation, beware of off-by-one errors. Same if you're using std::vector.

Comment out the changes, then reintroduce them line by line and see when things start crashing. You can use sprintf(oapiDebugString(), "...", ...) to display stuff.
 
What I recommend is to run your add-on DLL under the debugger; see this post for details.
 
Back
Top