Dynamic Allocation Problem.....
- From: "Muthukumar" <muthu@xxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 16:07:44 +0530
Dear Pals,
Query 1:
In my Win32 console application using Microsoft C compiler, I am using
malloc() to allocate memory for the Pointer variables. These allocations are
working very fine, but sometimes malloc() failed to allocate memory and
gives Unhandled Exception error. Pointer variable has no allocated memory
and hence it leads to Unhandled Exception.
Could you please tell me in which cases malloc get fails to allocate memory?
How to resolve this issue as a permanent?
Query 2:
During the deallocation time using the free() , I am getting the "Debug
Assertion failed" error in some cases. What might be the reason for getting
this Error? Could you please give the better solution.
Earliest replies are very much appreciated.
Regards,
Shahul.
.
- Follow-Ups:
- Re: Dynamic Allocation Problem.....
- From: Dan Mitchell
- Re: Dynamic Allocation Problem.....
- Prev by Date: Exchange Rules.dll, Outlook Launch.dll
- Next by Date: Received lines in schemas:mailheader:received
- Previous by thread: Exchange Rules.dll, Outlook Launch.dll
- Next by thread: Re: Dynamic Allocation Problem.....
- Index(es):
Relevant Pages
|