Adding such a feature has been on my list for a long time. However, I've
deferred adding it because it's something that developers can easly add to
their own applications:

#if ERROR_CHECK_LEVEL == ERROR_CHECK_FULL

#define MemHandleNew(size) MyMemHandleNew(size)

VoidHand MyMemHandleNew (UInt32 size)
{
     VoidHand  result = MemHandleNew (size);
     FillHandleWithGarbage (result);
     return result;
}

#endif


This can work better than what Poser can provide, as the application
developer knows better what consitutes "garbage". On the downside, it's
slower than anything Poser could do with "native" code (as opposed to
emulated code).

-- Keith Rollin
-- Palm OS Emulator engineer





[EMAIL PROTECTED] (David Oakley) on 05/09/99 04:40:08 AM

Please respond to [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED] (David Oakley)


To:   [EMAIL PROTECTED]
cc:    (Keith Rollin/HQ/3Com)
Subject:  Re: POSE not emulating Device




Mike,
Thanks sounds kinda likely. From my recollection, old versions of Palm OS
(pre 3) zeroed memory, so you didn't need to worry about initialising
things
if you wanted them to default to 0. OS 3+ doesn't guarantee anything about
the state of the memory that you are given, so explicitly setting zero is A
Good Thing(tm). Maybe POSE is (um) being nice and always giving you zero'd
memory?
Keith, maybe that's a thing you could have as an option? "Initialise
allocated memory blocks with rubbish".
Seeya,
David
---
David Oakley - [EMAIL PROTECTED] - ICQ 9610512
partner, Astraware - http://www.astraware.com/
Fire! for PalmPilot: http://www.astraware.com/pfire.html
Timetable for PalmPilot: http://www.astraware.com/timetable.html


Reply via email to