problem about heapalloc-Collection of common programming errors


  • Chris Meredith
    .net c++-cli malloc heapalloc
    I have a suite of tests written in C++/CLI that call into a native DLL in order to remotely test a Windows CE device. At two points during the test setup process, memory on the native heap is allocated–once for 512 bytes, the other for 572 bytes. In both instances, malloc() eventually called HeapAlloc() using the CRT heap. The handle to the CRT heap did not change between calls. The call that was meant to allocate 572 bytes fails with exception 0xc0000005 (I can try to provide code examples

  • Sorlaize
    heap quota heapalloc
    I’m allocating a small number of data types, total size 2mb.I only use one heap, and it runs fine until I get to a certain number of allocations, I’m pretty sure of this because I’ve commented one allocation for it to crash on the next.Quota = disk space? the documentation doesn’t cover error codes for this specific function, I’ve profiled the application and there’s plenty of memory free allocated for the process. Also I put a data breakpoint on the heap pointer, and it doesn’t break. The heap

  • fokenrute
    c malloc magic-numbers heapalloc
    I’m implementing a heap allocator (malloc), and I need to choose a magic number to check if a given pointer point to a data structure I allocated. It seems obvious to me that no magic number can be considered completely safe (if the number is checked, I can be sure a point to one of my data structure), but maybe I missed something, so… if someone can help and bring me the number of my dreams, I’d really appreciate. Thx in advance.

Web site is in building