> 1) Since this code occurs in a Hackmaster hack, it is unloaded each and
> every time after it is called.  In this situation, it should not keep its
> static variables, since they would be garbage collected when it ends.

  ok.. use features :)) store the old pointer in a feature.. :)) 

put:
---
#define appCreator 'TEST'

FtrSet(appCreator, 1000, (UInt32)ptr1);
FtrSet(appCreator, 1001, (UInt32)ptr2);
---

get:
---
FtrGet(appCreator, 1000, (UInt32*)&ptr1);
FtrGet(appCreator, 1001, (UInt32*)&ptr2);
---

  features allow you to do so many fun things, and when you soft reset,
  they are all wiped. what i would suggest you do, if you are no longer
  using them, and that is unregister them

unregister
---
FtrUnregister(appCreator, 1000);
FtrUnregister(appCreator, 1001);
---

  cheers :)) 

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


-- 
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