On Fri, 09 Jul 2004 17:08:05 -0400, Andrei Barbu wrote:
Even if it does it a different way, this is a reliable way of testing to see if we can write to a pointer, so if it's valid.
Actually it's not - IsBadWritePtr isn't thread safe, as it only tells you whether the pointer was valid at the instant you called it. The docs warn against using it for exactly that reason, hence the fact that Windows itself uses it only rarely.
thanks -mike