In my program, I have some arrays of structs; all the data is static, it is 
compiled in and only read at runtime.

I need to access this data both from within my main program as well as 
inside an sysAppLaunchAlarmDisplay handler.
But since the arrays are considered as globals which thus cannot be 
accessed from within that handler, I have a problem :/

To work around that, I tried forcing the data into the code segment with 
__attribute__((section(".text"))).
They ended up in the text segment alright, but I now get errors about 
"reading from an unallocated chunk of memory" whenever I try to access the 
data, even when globals are available.

The code that reads knows about the segment change (table and code are in 
the same source file).

Is there a way to make this work without putting the data in a database or 
storing the relevant values as part of the app preferences or something?


      Gert-Jan

-----
404 - Someone who's clue-less. From the World Wide Web error
message "404 Not Found," meaning that the requested document
could not be located. "Don't bother asking him . . . he's
404, man.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to