General Question Orbiter.exe runtime error logs

thepenguin

Flying Penguin
Addon Developer
Joined
Jul 27, 2013
Messages
220
Reaction score
1
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?
 

RisingFury

OBSP developer
Addon Developer
Joined
Aug 15, 2008
Messages
6,427
Reaction score
492
Points
173
Location
Among bits and Bytes...
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.
 

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,218
Reaction score
1,566
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
What I recommend is to run your add-on DLL under the debugger; see this post for details.
 
Top