> Hi Andreas, > > had a look at the patch you suggested on the JSBSim list > (http://sourceforge.net/mailarchive/attachment.php?list_name=jsbsim-devel&message_id=4D5436B3.10606%40web.de&counter=1). > > However, I looking at the code it seems calling these "InitMatrix" in > the FGForce constructor shouldn't be necessary. The FGMatrix33 > constructor in fact does initialize the matrix to 0 (see > FGMatrix33.cpp, i.e. > FGMatrix33::FGMatrix33(void) > { > data[0] = data[1] = data[2] = data[3] = data[4] = data[5] = > data[6] = data[7] = data[8] = 0.0; > } > > . And the FGForce constructor will automatically call all its members' > constructors. >
... Oops, wasn't finished typing... :) Anyway, you maybe you can double-check if that patch really changed anything concerning initialization. If it really did, then I suspect there must be something else going terribly wrong (memory corruption?), which could explain why the FGMatrix33 constructors weren't executed properly. cheers, Thorsten ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel