Why does _get_heap_handle equal to GetProcessHeap?

前端 未结 4 1398
清歌不尽
清歌不尽 2020-12-20 06:21

According to this article, CRT uses separate heap (is it private heap?), but this little example shows that CRT heap and Default heap are the same

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 07:16

    From the Article, CRT creates its own private heap, which resides on top of the Windows heap.

    CRT allocates/de-allocates from the same default process heap. By private it means all the house keeping of objects is private to CRT.

提交回复
热议问题