Hi,
When i use HeapAlloc to allocate the memory in the heap i am getting the following error.


Code:
pV = HeapAlloc(SesMem, HEAP_ZERO_MEMORY , ulSize);

Error:

First-chance exception in App.exe (NTDLL.DLL): 0xC0000005: Access Violation.

What may be the reason behind this error.

Thanks in Advance,
Varadha