This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygthread::cygthread() hang


On Wed, Apr 09, 2003 at 01:08:37PM -0400, Joe Buehler wrote:
>Pierre A. Humblet wrote:
>
>>Shouldn't it simply be MEM_RELEASE? Right now the committed memory would
>>change state to reserved, no freed.
>
>You're correct.  The msdn documents are clearer than my book -- only one 
>call
>to VirtualFree() should be needed.  Two changes appear to be needed though:
>
>- change from MEM_DECOMMIT to MEM_RELEASE
>- change the region length to 0, meaning "the whole memory region"

And that solves your problem, then?

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]