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 / 370
369  |  371
Subject: 
Re: Showing Strings on LCD
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Mon, 16 May 2005 18:05:59 GMT
Viewed: 
7710 times
  
Hi Armin,

"Armin Buttinger" <a.buttinger@t-online.de> writes:

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?

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 check if it was indeed out of memory you can look
which exception was raised, look in the README for instructions.


Jürgen

--
NO to software patents -- stop the European patents directive

Jürgen Stuber <juergen@jstuber.net>
http://www.jstuber.net/
gnupg key fingerprint = 2767 CA3C 5680 58BA 9A91  23D9 BED6 9A7A AF9E 68B4



Message is in Reply To:
  Showing Strings on LCD
 
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 (...) (20 years ago, 8-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