[futurebasic] Re: Memory question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: Charlie Dickman <charlied@...>
Date: Sat, 4 Apr 1998 14:07:05 -0500

Your understanding of what pointers and handles are is correct.

I, personally, do not know whether your "IsThatAHandle" function will work
as you intend it to or not. Without digging into the details of exactly how
the Memory Manager keeps track of things I know of no way to distinguish a
handle from a pointer. Logically there should be no way to distinguish one
from another based on its contents alone in that, since each contains a
memory address, each one can have any value between 0 and the largest
memory address in the machine. There are limitations to this since low
memory addresses are reserved for the system's use, etc. so you can count
on the values being greater than a certain value  and less than some
maximum that varies from machine to machine.

Perhaps someone else on this list who is better versed at these types of
considerations can be of more help.

Charlie Dickman