Hi Juan,

>
> Thanks for your comments Roger, but I notice that when I use methods that I
> write strings into NXT LCD, drawString, It reduces NXT memory.
True,   every time you call  a LCD.drawString("Hallo Jeje")
it creates a new string.  So if you do repeated calls, declare a string 
constant field. I generally declare  String blank = "                   
"; as a field of my object, so I can clear  line l by LCD 
drawString(blank,l);

But your code seems to call drawString() only in  credits() which is 
called only once. So I still don't see the cause of the memory leak.


Roger

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion
  • Re: [Lejos-discu... Roger Glassey
    • Re: [Lejos-... Juan Antonio BreƱaMoral , JAB , www . juanantonio . info

Reply via email to