HeapAlloc returns 0xC0000017: insufficient quota

I highlight a small number of data types, the total size of 2mb.

I use only one heap, and it works fine until I get a certain number of distributions. I am sure of this because I commented on one distribution for its failure on the next.

Quota = disk space? the documentation does not cover error codes for this particular function, I profiled the application and there was allocated enough free space for the process. I also put a data breakpoint in the heap pointer and it does not break. The heap pointer is ok when I jump to my HeapAlloc call.

So strange..

+3
source share
2 answers

(.. > 2 ), , , . , , 2 ? , 2gb, 2mb, .

, .

+2

WinNt.h C0000017 STATUS_NO_MEMORY, , HeapAlloc . , , .

+1

Source: https://habr.com/ru/post/1729510/


All Articles