Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary <debugger@xxxxxxxxxxxxxxxx>
- Date: Tue, 09 Aug 2005 18:43:49 +0530
Pavel,
Yesterday it failed again with CreateThread failing with ERROR_NOT_ENOUGH_MEMORY. Thi time we ran with /3G switch enabled & the binary was linked with /LARGEADDRESSWARE option. The process VM was around 2.04GB, handle count around 5000 & the number of threads is 210. When we still have so much of space for user addr space, then what could go wrong withing CreateThread?
Am I reaching the upper limit for num of handles in one single process? Or that the total max number of objects is attained?
Dont have any clue to move forward. Can you suggest some approach. This is on Win2K Server.
Thanks, Gary.
Pavel Lebedinsky [MSFT] wrote:
You could try doing .symopt+ 40 (this will turn on SYMOPT_LOAD_ANYTHING), then pointing debugger to XP symbols for ntdll and doing .reload. If the types that !address uses haven't changed between Win2K and XP (I don't know if that's the case) this might work.
.
- Follow-Ups:
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Pavel Lebedinsky [MSFT]
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: qfel
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- References:
- CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Bill
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Arnaud Debaene
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Oleg Starodumov
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Pavel Lebedinsky [MSFT]
- CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- Prev by Date: Re: Internal application error - reason for this?
- Next by Date: Question about file system filter sample?
- Previous by thread: Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- Next by thread: Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- Index(es):