Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (652)
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  
  VM crash in Joint.setParam(...)  (Read 1385 times)
0 Members and 1 Guest are viewing this topic.
Offline sanchofx1

Senior Newbie

Java games rock!

« Posted 2005-04-07 13:35:27 »

Hey folks,
don't know wether this is a bug, but I get a VM crash when I cast my JointHinge to Joint and call setParam(x,y) on this. No crash is happening when I use the JointHinge reference in the same code.
Is it not possible to set the parameters from a Joint reference ?

Offline arne

Senior Devvie

money is the worst drug- we should not let it rule

« Reply #1 - Posted 2005-04-07 13:55:58 »

Heah ?? I think if you cast something it shouldn't affect anything, because even when casted down the overwritten function gets executed - isn't that the power of object oriented programming ? So what I'm saying with that your error is probably somewhere else.

:: JOODE :: Xith3d :: OdeJava ::
Offline sanchofx1

Senior Newbie

Java games rock!

« Reply #2 - Posted 2005-04-07 15:09:43 »

public void configure(Joint joint) {
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ewills

Junior Devvie

Java skeletal animation systems rock!

« Reply #3 - Posted 2005-04-07 15:15:21 »

Hmm... it sounds like the Joint is not actually a JointHinge, but I would think that would result in a ClassCastException.  You can verify the Class of the Joint using joing.getClass().getName().  Alternatively, the option may not be valid for a JointHinge.
Offline sanchofx1

Senior Newbie

Java games rock!

« Reply #4 - Posted 2005-04-07 15:57:19 »

Oh, now it suddenly works again. Thats strange, I have repeated the test two times bevor I wrote here - it was reliably crashing without hte casting??? Now it works - again. Doesn't make any sense to me... I think there must evetually be passed somthing illegal (or maby null) into the method? Now it's gone, but I will now include a != null check, just to be on the save side.
Thanks guys!
Offline ewills

Junior Devvie

Java skeletal animation systems rock!

« Reply #5 - Posted 2005-04-07 16:45:36 »

Are you using the latest CVS?  There have been some native crash problems solved since the last release.
Offline sanchofx1

Senior Newbie

Java games rock!

« Reply #6 - Posted 2005-04-09 11:32:36 »

No actually not. I tried several times to build from cvs, but never succeeded. Maye I should give it a try again? I think my version is  0.2.4, and I'm strugglingquite  hard with several VM crashes...
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

SHC (24 views)
2015-08-01 03:58:20

Jesse (19 views)
2015-07-29 04:35:27

Riven (40 views)
2015-07-27 16:38:00

Riven (21 views)
2015-07-27 15:35:20

Riven (24 views)
2015-07-27 12:26:13

Riven (14 views)
2015-07-27 12:23:39

BurntPizza (36 views)
2015-07-25 00:14:37

BurntPizza (46 views)
2015-07-24 22:06:39

BurntPizza (28 views)
2015-07-24 06:06:53

NoxInc (36 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
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!