To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1217
1216  |  1218
Subject: 
Re: Persistent globals
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 16 Jul 2000 19:23:06 GMT
Viewed: 
1312 times
  
On Sun, 16 Jul 2000, Michael J Ash wrote:
I recall that with older versions of legOS, global variables were only
initialized once, when the program was downloaded. Afterwards, they were
preserved across runs and powerdowns until the program was reloaded from
the computer again. I'm now in a sitaution where that would be helpful to
me, and it looks as if legOS 0.2.3 eliminates it. Is this correct, or am I
seeing something totally different? If it is correct, is there a good way
now to store persistent data like that?

It is correct. Everytime you reload a program it re-initializes
everything, including a specific program's memory, so all that kind of
information is lost. I'm not sure that there is a way to duplicate that
behavior, as things stand. The only way to do it (I think) is to hack the
kernel so that there is some kind of permanent storage in the kernel-
similar to the data dump in the normal RCX, but that could be read from
by the RCX.
-Luis

-----------------------------------------------------------------------

    "Summertime... and the living is easy...
    fish are jumping and the cotton is high...
    So hush, little baby, baby don't you cry."
-Ella

-----------------------------------------------------------------------



Message is in Reply To:
  Persistent globals
 
Whew, I've been writing here a lot. I guess now that things work, it's a lot more enjoyable! :) Anyway, here goes.... I recall that with older versions of legOS, global variables were only initialized once, when the program was downloaded. (...) (24 years ago, 16-Jul-00, to lugnet.robotics.rcx.legos)

12 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