Shawn <[EMAIL PROTECTED]> writes: > lil bit late in responding to this message. Here > i am storing the pointer location of the Char** in the feature memory > so as to erase the contents later on in a different subroutine. At > that time, i am not bothered about the contents.
It sounds like you're using the feature manager as a mechanism for holding global variables (in this case a pointer). I think that this would work -- as long as your application doesn't exit, the feature will contain a valid pointer. But, why not just use a global variable instead? Anyway, if you insist on doing it with features, you would do something like: Char** someptr; FtrSet(CreatorID, FeatureNum, (UInt32)someptr); ... Char** thesameptr; thesameptr = (Char**)FtrGet(CreatorID, FeatureNum); As soon as you exit your program, that pointer is no longer valid, so I would also suggest doing this during your cleanup FtrUnregister(CreatorID, FeatureNum); -- Dave Carrigan ([EMAIL PROTECTED]) | Yow! UH-OH!! I put on ``GREAT UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | HEAD-ON TRAIN COLLISIONS of the Seattle, WA, USA | 50's'' by mistake!!! http://www.rudedog.org/ | -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
