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 / 368
367  |  369
Subject: 
Showing Strings on LCD
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Sun, 8 May 2005 21:31:22 GMT
Viewed: 
7662 times
  
I have a RCX and three Sensors. I want to have the three sensor-values on the
LCD-screen.
I had an idea: changing the sensor-integer-values in String, so
I have the 3 Values in a String I am showing on the LCD-screen.
But if I run this in an endless-loop, the program shut down.

why?

Can somebody help me?



Message has 2 Replies:
  Re: Showing Strings on LCD
 
(...) Can you post your source code (or the relevant bits at least)? Thomas (20 years ago, 9-May-05, to lugnet.robotics.rcx.java)
  Re: Showing Strings on LCD
 
Hi Armin, (...) probably because it runs out of memory. This is hard to avoid with strings, as Lejos doesn't garbage collect memory. Either you generate too many strings, or you have an old version of Lejos that is not careful enough in TextLCD. To (...) (20 years ago, 16-May-05, to lugnet.robotics.rcx.java)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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