Use SetDistToStack rather than =
Removed IsInHeap and IsInStack methods.  Use only IsAllocatedInObjects.  Added validation for allocation.