[ODE] Unhandled exception - access violation

Harley Blumenfeld harleybl at hotmail.com
Wed Nov 27 08:51:02 2002


<html><div style='background-color:'><DIV>
<P><BR>Yes I am using an unaltered version of test_buggy.cpp. I just recopied it from test to make sure. </P>
<P>Yes the error is happening within dGeomDestroy( box[ 0 ] ); </P>
<P>Here is what the stack looks like when it happens ( from MSVC Context: bar )</P>
<P>MYBUGGY! dxGeom::bodyRemove( void )</P>
<P>MYBUGGY! dxGeom::~dxGeom( void )</P>
<P>MYBUGGY! dxBox::~dxBox( void )</P>
<P>MYBUGGY! dxBox: `vector deleting destructor'(unsigned int )</P>
<P>MYBUGGY! dxGeomDestroy</P>
<P>I tried the solution of moving the dGeomDestroy code to the first line after dsSimulationLoop and that seemed to work... is there a specific ordering in which things should be deleted?</P>
<P>-Harley Blumenfeld</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P><BR>&nbsp;</P></DIV>
<DIV></DIV>&gt;From: Russ Smith <RUSS@Q12.ORG>
<DIV></DIV>&gt;To: "Harley Blumenfeld" <HARLEYBL@HOTMAIL.COM>
<DIV></DIV>&gt;CC: ode@q12.org 
<DIV></DIV>&gt;Subject: Re: [ODE] Unhandled exception - access violation 
<DIV></DIV>&gt;Date: Tue, 26 Nov 2002 19:00:26 -0500 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; &gt; It seems to be happening when the box is destroyed in the line 
<DIV></DIV>&gt; &gt; dGeomDestroy( box[0] ); 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;is the error happening within dGeomDestroy() or within main(). are you 
<DIV></DIV>&gt;using an unaltered copy of test_buggy? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;russ. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-- 
<DIV></DIV>&gt;Russell Smith 
<DIV></DIV>&gt;http://www.q12.org 
<DIV></DIV></div><br clear=all><hr>Protect your PC - <a href="http://g.msn.com/8HMAEN/2024">Click here</a> for McAfee.com VirusScan Online </html>