Question Rwarp and flying in atmo

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,715
Reaction score
2,684
Points
203
Location
Dallas, TX
Ok ran the debugger. So it is not getting the target name.

But not sure why is breaks at the arrow and not the break (red Dot)
iddrivedebug_zpsbf53959c.jpg
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,715
Reaction score
2,684
Points
203
Location
Dallas, TX
Ok ran across this while running the debug. No symbols loaded.
iddrivedebug5_zpsef41318f.jpg
 

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
But not sure why is breaks at the arrow and not the break (red Dot)
iddrivedebug_zpsbf53959c.jpg
It looks like there is no valid object handle returned by oapiGetObjectByName (no object of that name was found) - according to Autos the `str` variable is an empty string (""). IIRC, no OrbiterAPI functions check for NULL pointers, so there's most likely an access violation exception inside oapiGetVesselInterface after you passed the invalid object handle (NULL pointer) to it, which breaks the execution of the code at a point before your set breakpoint (somewhere inside oapiGetVesselInterface function).

I'd advise checking if oapiGetObjectByName returns a valid object handle of a vessel object (oapiIsVessel) before you want to get its VESSEL interface.

Ok ran across this while running the debug. No symbols loaded.
iddrivedebug5_zpsef41318f.jpg
No symbols loaded for Orbiter.exe is not an issue. It's normal, as you don't have the sources or a debug build of the Orbiter core. You don't have to worry about it at all, and safely ignore it. You can eventually view disassembly of the code if you want to see where exactly at which instruction inside Orbiter the exception occurred.
 
Top