Eric With the current CVS on my XP machine (the one that runs) I have been trying to debug this problem. Here is the progress to date.
I have edited "free_data" as so to allow facilitate breakpoint setting void free_data() { if ( _data ) free( _data ); _data = NULL; } and then set a breakpoint at the "if" statement. If I single step (F11) at the first occurrence of the breakpoint it fails as it enters "free( _data)" My guess is that space is not allocated for the rumble.wav data. Sadly I am retired now and it is several years since I last debugged a program. Even then as a Fortran man my C++ skills were somewhat lacking an things like pointers to pointers got my poor brain confused. I suppose the good news is that I am able to duplicate the fault on the XP machine (which normally runs without fault) simply by using debug runtime.. Hope this is some help. Alan -------------------------------------------------- From: "Erik Hofman" <e...@ehofman.com> Sent: Monday, December 07, 2009 1:37 PM To: "FlightGear developers discussions" <flightgear-devel@lists.sourceforge.net> Subject: Re: [Flightgear-devel] Debug Assertion Failed in Sample_opneal.hxx > Alan Teeder wrote: >> Eric >> >> An aircraft that I am developing caused Flightgear to crash on the Vista >> box, but not on the XP one. >> This I traced to some bad coding in my JSBsim aero file:- >> >> <table> <!-- Ch-delta >> elevator --> >> <independentVar lookup="row"> >> fcs/elevator-pos-deg</independentVar> >> <tableData> >> >> <!-- ********************************************** >> No surface deflections specified in input file >> ********************************************** --> >> >> </tableData> >> </table> >> >> It was an empty table generated by Datcom+ which I had not got around to >> filling in. >> The XP machine, which I use most of the time does not hiccup at this. >> >> Flightgear on the Vista laptop also crashes with something that appears >> to >> be related to the sound patches, AND also every time that I exit. >> >> The XP box sees none of these problems. >> >>>From this I now believe that the problem is that the Vista laptop is less >> tolerant of run-time errors than the XP box. >> >> As far as Sample_openal.hxx is concerned all I can guess from my debug >> sessions at is that there is some kind of a problem at the time that >> "Rumble.wav" is used and it is even possible that the problem is at the >> XML >> code level. > > It's not getting easier to track down. Although maybe it indicates an > uninitialized variable or something like that. > > It might even be allocated memory that is reserved at an unrelated piece > of code but that overwrites the section that gets freed by the > soundmanager. > > Erik > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel