Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [odejava] further adventures with spaces  (Read 747 times)
0 Members and 1 Guest are viewing this topic.
Offline dsellars

Junior Member




Need to write more games


« Posted 2004-05-10 23:56:51 »

Hello,

After looking at other stuff for a while I decided to have another play with odejava and came upon the following problem.  I was wondering if anyone else had experienced it.   What is happening it this:

I am trying to remove a geom from a space like so
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
      
            Odejava.init();
           
            Space space = new Space();
           
            GeomBox box = new GeomBox(1.0f, 1.0f, 1.0f);
           
            space.addGeom(box);
           
            space.remove(box);


and I am getting the following error:

1  
2  
3  
4  
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x6D56D99
Function=dSpaceAdd+0x9
Library=C:\Code\Java\bin\odejava.dll


Am I doing something I shouldn't here (or not doing something I should)? (which is possible at this time Smiley )

Cheers,
Dan
Offline dsellars

Junior Member




Need to write more games


« Reply #1 - Posted 2004-05-11 17:50:25 »

Just as an add on to this the crash seems to be when  the following code is called in Geom:

1  
2  
3  
4  
5  
6  
7  
8  
protected void removeFromSpace () {
            assert spaceId != Space.SPACEID_ZERO: "This   geom is already not in any Space";
           
            Ode.dSpaceRemove(spaceId, geomId);
            spaceId = Space.SPACEID_ZERO;
  Ode.dSpaceAdd(spaceId, geomId); <------ here

      }


I don't know if this helps or not.

Dan.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (84 views)
2013-05-18 12:29:12

alaslipknot (92 views)
2013-05-17 12:24:48

gouessej (123 views)
2013-05-16 15:53:38

gouessej (115 views)
2013-05-16 15:17:58

theagentd (127 views)
2013-05-16 06:01:13

theagentd (114 views)
2013-05-16 06:00:54

StreetDoggy (158 views)
2013-05-15 06:56:26

kutucuk (180 views)
2013-05-13 08:10:36

kutucuk (180 views)
2013-05-13 06:36:09

UnluckyDevil (187 views)
2013-05-12 20:09:57
Complex number cookbook
by Roquen
2013-04-25 03:47:31

2D Dynamic Lighting
by Oskuro
2013-04-18 07:46:12

2D Dynamic Lighting
by Oskuro
2013-04-18 07:45:57

2D Dynamic Lighting
by Oskuro
2013-04-18 07:23:20

Noise (bandpassed white)
by Roquen
2013-04-06 08:36:01

Noise (bandpassed white)
by Roquen
2013-04-04 07:17:38

Java Data structures
by Roquen
2013-03-30 04:21:12

Topic Request
by kutucuk
2013-03-23 12:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.12 seconds with 20 queries.