Yes, it's already done automatically. The system has a timer procedure that
fires several times a second to check if low-memory has been modified.
Of course, Poser will tell you immediately when you access low-memory. No
checksumming required!
-- Keith Rollin
-- Palm OS Emulator engineer
"Jeff Ishaq" <[EMAIL PROTECTED]> on 09/29/2000 05:25:37 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "Jeff Ishaq" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
Subject: Can I use GSysLowMemChecksum?
I noticed this datum in Globals.h. I was considering doing a checksum of
low mem before/after my app loop to detect misbehaviors, something like:
gPreChecksum = Crc16CalcBlock ( PilotGlobalsP, sizeof( LowMemHdrType), 0 );
// .. app execution
ErrFatalDisplayIf( gPreChecksum != Crc16CalcBlock( PilotGlobalsP,
izeof( LowMemHdrType), 0, "Drat...");
When I stumbled across GSysLowMemChecksum, I was curious if this is already
done for me automatically, and maybe a little more info about when and why.
Thank you,
-Jeff Ishaq
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/