At the risk of being annoying: You might check the other uses of VirtualFree(). I notice that there are variations in how it is called from Cygwin. -- Joe Buehler