Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple problem with allocation

Status
Not open for further replies.

ebuBekir

Technical User
Sep 6, 2001
22
DE
Hi @ all!

I have problems deallocating space.

MfContour2D* profile = new MfContour2D [20];


When I try to deallocate space, I get an ‘error’(Debug Assertion Failed!) und das Programm wird abgebrochen.
if ( profile != NULL )
delete profile;

The following does not work, either.
if ( profile != NULL )
delete profile;

Does anybody have an idea, what the problem may be?
Thanks a lot,…
:cool:
 
Sorry, I already did that. There is a mistake in my text above.
>
> if ( profile != NULL )
:> delete [] profile;
>
>The following does not work, either.
> if ( profile != NULL )
> delete profile;
:cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top