Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Beta Topics related to Beta releases of Orbiter and Orbiter development.

Thread Tools
Old 08-12-2015, 04:24 PM   #1
meson800's Avatar

Default oapiGetBaseByName bug

From catch-ctd analysis, it seems like oapiGetBaseByName crashes when given a non-existent base name instead of returning NULL.

See this for logs.
meson800 is offline   Reply With Quote
Old 10-02-2015, 02:28 AM   #2
Orbiter Founder

I didn't manage to reproduce this problem. Calling oapiGetBaseByName with a valid OBJHANDLE for a planetary body (planet or moon) and a nonexisting base name should have returned 0. The function should have been unchanged from 2010-P1.

I have now (SVN r.30) modified the function to catch non-planetary body OBJHANDLEs. (this should now also return 0, rather than crashing). However, the OBJHANDLE parameter must still be a handle to a valid (and non-deleted) object. Passing an invalid handle will still CTD.

Can you check if the function now behaves how you'd expect?
martins is offline   Reply With Quote

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta

Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump

All times are GMT. The time now is 05:58 AM.

Quick Links Need Help?

About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.