February 05, 2003
Walter,
can the gc's method of detecting a pointer to object be used to allow debug
code to detect the array that a pointer is pointing into and so allow
pointer to also be bounds checked (debug only as I assume it will be an
expensive operation) ?



February 13, 2003
"Mike Wynn" <mike.wynn@l8night.co.uk> wrote in message news:b1s73i$nbr$1@digitaldaemon.com...
> Walter,
> can the gc's method of detecting a pointer to object be used to allow
debug
> code to detect the array that a pointer is pointing into and so allow pointer to also be bounds checked (debug only as I assume it will be an expensive operation) ?

Potentially, yes, although the gc allocates more memory that is required by the array, so this check would still let slip through invalid pointer offsets.