Meadville Space Center Forum Index Meadville Space Center
Know the future through the past
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Initialisation

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Meadville Space Center Forum Index -> Programming
View previous topic :: View next topic  
Author Message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Sat Jun 10, 2006 1:56 pm    Post subject: Initialisation Reply with quote

BTW, we should initalise all floating point values to zero or some other sensible value in the constructor for our classes. I've just been fixing a bunch of bugs where Orbiter explodes on saving the scenario because there's some random value in a double which makes the oapiWriteScenario_float() function crash.

Worst of all it leaves you with a corrupt scenario file that you can't load.

This often wasn't a problem before when we started up the scenarios with the buses powered, because the timestep code would load sane values into the variables. But now we start unpowered, those values don't get loaded and if you save then Orbiter blows away.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Meadville Space Center Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group