Hi, I built a version with debug info only for this file and got, as expected, normal performance. The problem is in line 807: if (i != current) I have not much experience with overloaded comparators, but it seems to me, that not the "pointers" are compared in this case, but the complete structure. But "current" holds an invalid pointer in its structure: (((*(current)._Myptr).runway))._Bx I don't know how this can happen, that the string "runway" contains a invalid pointer, but this seems to cause the crash. Maybe another pointer writing on this pointer? Or did you copy the address of this FGTrafficRecord (or of the string runway) and call the destructor?
For performance reason I would suggest to add an operator == to class FGTrafficRecord, esp.: bool operator == (const FGTrafficRecord &right) const {return id == right.id;} if "id" is sufficient to compare two FGTrafficRecords. Maik Durk Talsma schrieb am 15.11.2006 07:51: > On Tuesday 14 November 2006 22:07, Maik Justus wrote: > >> Hi Durk, >> I am sorry, but the same crash occurred with actualized cvs (head) source. >> Maik >> >> > > In retrospect, my "solution" doesn't appear to make much sense at all. I'm > still puzzled why FlightGear would crash, because I can't really see anything > obviously wrong with the code right now. > > Can you give me the following details? > - Which airport are you flying? > - How long does FlightGear run until it crashes? > - Did you build / install any custom AI ground networks, traffic files, or AI > Aircraft? > > Thanks in advance, > Durk > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel