damage after normal block( #24094)
-
Hi All, I have declared a pointer type variable of DWORD type in CFormView type class. I am allocating memory using new DWORD[ records ]. And I am freeing the memory in the destructor using delete[]. But I am getting mfc exception damage after normal block( #24094)at hex address. Can any body give me reason why I am getting that exception? I am not able to trace the problem. Please help me.
-
Hi All, I have declared a pointer type variable of DWORD type in CFormView type class. I am allocating memory using new DWORD[ records ]. And I am freeing the memory in the destructor using delete[]. But I am getting mfc exception damage after normal block( #24094)at hex address. Can any body give me reason why I am getting that exception? I am not able to trace the problem. Please help me.
you have written past the end of the memory you allocated.
-
Hi All, I have declared a pointer type variable of DWORD type in CFormView type class. I am allocating memory using new DWORD[ records ]. And I am freeing the memory in the destructor using delete[]. But I am getting mfc exception damage after normal block( #24094)at hex address. Can any body give me reason why I am getting that exception? I am not able to trace the problem. Please help me.
You've written in the memory block beyond the allocated memory size. If you are using the pointer arithmetic, check for your logic for advancing through the items in the array. Check for your memory writing logic too...
[Delegates] [Virtual Desktop] [Tray Me !]
-Malli...! :rose:****