how to delete a buffer

Posted on 2002-05-09
Last Modified: 2013-11-20
hi alll
i am working in VC++.
i create a buffer like it
char * buff = new char[1000];
now i worked with it.
can any one tell me how to delete it to release the memory.
Question by:Ultpak
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 32

Accepted Solution

jhance earned 50 total points
ID: 6999324
delete [] buff;

Author Comment

ID: 6999358
ya i did it.
but the application crashes, while running in release mode.
LVL 32

Expert Comment

ID: 6999418
I'm sorry to hear that.  But that was not your question.
LVL 32

Expert Comment

ID: 6999449

Expert Comment

ID: 7008964
I have updated all your remaining open questions, please finalize them.

Moondancer - EE Moderator

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 95
Error on moodle after upgrade 3 149
Sed question 2 123
how to use laptop or pad camera in windows application 2 105
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question