To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 173
  What is exception "StackOverflowError" in method "<clinit>"
 
When running my program (made of several classes), I get the following: (Output from the Emulator, but I get similar result on the RCX of course) *** UNCAUGHT EXCEPTION/ERROR: -- Exception class : 7 -- Thread : 1 -- Method signature : 3 -- Root (...) (22 years ago, 13-May-02, to lugnet.robotics.rcx.java)
 
  Re: What is exception "StackOverflowError" in method "<clinit>"
 
(...) StackOverflowError could either be a stack overflow (maximum depth is 10) or a thread that dies from whatever exception (that seems to be a bug, but I couldn't yet figure out what causes it). I suppose TextLCD.print should work, though I never (...) (22 years ago, 17-May-02, to lugnet.robotics.rcx.java)
 
  Re: What is exception "StackOverflowError" in method "<clinit>"
 
(...) I have tried TextLCD.print() and it really does work. Roger (22 years ago, 17-May-02, to lugnet.robotics.rcx.java)
 
  Re: What is exception "StackOverflowError" in method "<clinit>"
 
(...) Yes, you are both right (Thanks anyway) 1. TextLCD.print() works perfectly when called from simple programs 2. My code is most probably using too deep calls (Why is this not covered in the 10/10 'Core' book of Bagnall) BUT, QUESTION FOR YOU (...) (22 years ago, 22-May-02, to lugnet.robotics.rcx.java)
 
  Re: What is exception "StackOverflowError" in method "<clinit>"
 
(...) The first time a method is called the class gets initialized, and the stack overflow happened in the initialization method <clinit>, so nothing mysterious there. (...) If your program uses a lot of memory (less than 3K free) this is a side (...) (22 years ago, 23-May-02, to lugnet.robotics.rcx.java)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR