Re[2]: [ODE] Unhandled exception - access violation

Nguyen Binh Nguyen Binh <ngbinh at glassegg.com>
Tue Nov 26 20:32:02 2002


>> It seems to be happening when the box is destroyed in the line
>> dGeomDestroy( box[0] );

   It's the same for me. I'm using the latest test_buggt.cpp in CVS.
RS> is the error happening within dGeomDestroy() or within main(). are you
RS> using an unaltered copy of test_buggy?
    I solved it by bring the dGeomDestroy()... to front like this:
    

      dGeomDestroy (box[0]);
      dGeomDestroy (sphere[0]);
      dGeomDestroy (sphere[1]);
      dGeomDestroy (sphere[2]);

      dJointGroupDestroy (contactgroup);
      dSpaceDestroy (space);
      dWorldDestroy (world);


-- 
Best regards,

---------------------------------------------------------------------
   Nguyen Binh
   Software Engineer
   Glass Egg Digital Media
   
   E.Town Building  
   7th Floor, 364 CongHoa Street
   Tan Binh District,
   HoChiMinh City,
   VietNam,

   Phone : +84 8 8109018
   Fax   : +84 8 8109013

     www.glassegg.com
---------------------------------------------------------------------