|
-
Sep 25th, 2002, 04:14 PM
#13
Thread Starter
Fanatic Member
Originally posted by CornedBee
The WinAPI contains three functions:
IsValidReadPtr
IsValidWritePtr
IsValidExecPtr
which can be used to verify the integrity of a pointer at runtime in a non-portable way.
They don't return the size though, so if you don't know how the mem was allocated you can only cycle through the entire length of the array and call the above functions for each 4 byte chunk.
Hmm, I think I can live with this solution. Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|