Wow, tough crowd! Not to be defensive, but I don't think my question was
silly at all. Perhaps the wording could of been improved, but it's a valid,
non-trivial request for information. Isn't this one of the purposes of this
list? There is no MemIsValidPtr()-type of function, and would rather not
make assumptions based upon a given value. That is, I would like to be
able to test a given address for validity before riding off the deep end.
People tend not to like applications that causes your device to reset.
Given the level of expertise on this list, I was hoping that there was
someone who has already faces this particual problem. Obviously, testing
for NULL is not adequate.
BTW, thanks to those who did respond.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Philip
Sheard
Sent: Wednesday, January 24, 2001 4:59 PM
To: Palm Developer Forum
Subject: Re: How to test for valid pointers?
ask a silly question, get a sensible answer.
> Maybe MemPtrRecoverHandle will do what you need ?
>
> Regards,
> Randy Maxwell
>
> -----Original Message-----
> From: Bobby Williams [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 24, 2001 10:46 AM
> To: Palm Developer Forum
> Subject: How to test for valid pointers?
>
>
> I'm writing a function that needs to determine if a value passed to it
> represents a 32-bit value or a valid MemPtr. Is there a safe way to
> determine if a pointer is valid? I'm having no luck with my research.
(Yes,
> I've checked the archives. :) )
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/