Nasty blowout, any ideas?

After getting our project onto the new OdeJava API checked in by William, we are getting this nasty looking exception:


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_STACK_OVERFLOW (0xc00000fd) occurred at PC=0x3002EBB
Function=Java_org_odejava_collision_NativeCollision_plainNativeSpaceCollide+0xD07B
Library=C:\j2sdk1.4.2_03\jre\bin\odejava.dll

Current Java thread:
      at org.odejava.collision.JavaCollision.spaceCollide(Native Method)
      at org.odejava.collision.JavaCollision.collide(JavaCollision.java:124)


Anybody else seen this? I’m assuming it’s my own fault but I can’t quite figure out what I’m doing wrong.

Thanks,

Matt

Figured it out, I was adding both the geom and the body for an object to the space which seemed to be required from reading the cvs commit log instructions.

Should we make that method throw an exception if you try to add a body for which that body’s geom has already been added?

Overall though I like the changes to the API, everything makes more sense now, to me at least.

Matt

thanks - I’m glad you like the changes.

There are a few issues currently with Body and Geom which I am talking to Jani about. Since there may be interest I might move the discussion to this forum. I think this bug will dissapear when some up coming changes are made but we can keep our eye on it.

Cheers,

Will.

on reviewing the code, you are correct - the add(Body) method also adds the geom.

this problem and others are addressed here:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=physics;action=display;num=1079939893;start=0#0

Will.