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


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"
--
Joe Buehler


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