Hi Mike, Smith, Mike <[EMAIL PROTECTED]> wrote: > > My concern is that the master rcx has run out of memory > while calculating a move to make. After commenting out > some diagnostic methods (lcd data and beeps) it makes a > move. > I am wondering is there a way I can determine the > amount of memory free in the rcx
there is the standard Java method java.lang.Runtime.freeMemory(), look into examples/test/performance_test for an example. > and what does lejos do when it runs out of memory? It should throw an OutOfMemoryError exception, i.e. buzz and show some numbers on the LCD. Cheers Jürgen -- Jürgen Stuber <[EMAIL PROTECTED]> http://www.jstuber.net/ gnupg key fingerprint = 2767 CA3C 5680 58BA 9A91 23D9 BED6 9A7A AF9E 68B4 ------------------------------------------------------------------------- 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
