Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 08 Jun 2011 13:54:20 -0500 From: Pete Becker Organization: Roundhouse Consulting, Ltd. Newsgroups: comp.lang.c++ Date: Wed, 8 Jun 2011 08:54:20 -1000 Message-ID: <2011060808542076921-pete@versatilecodingcom> References: <75366d67-4c83-46cf-a75b-6a953578b6f8@v12g2000vby.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: HEAP error when trying to use free() help needed User-Agent: Unison/2.1.4 Lines: 15 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-aYrT8AxLwHtgbJRkfhqq7hRhOscLA6GlIwJvgtBC9dwRUljbPeD9LM4i+1baygbZFtSxF5/GAKkHOju!AK3owWNY9aErolp8ou/z66NFeXdUvM2u2V9xrH+0ltKMlLlIwTsmrgjse9eU8Bk1sRUeNI0= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1602 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:6436 On 2011-06-08 08:42:30 -1000, Krice said: > On 7 kesä, 13:16, none wrote: >> How can I make this code work? > > Don't use malloc/free in C++. Use new & delete. That won't fix the underlying problem. -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)