X-Apparently-From: Message-ID: <000801c01bc8$23837200$0301a8c0@cyberzone_lb0.czlbroad> From: "vikas" To: Subject: Re: strdup() with delete[] Date: Mon, 11 Sep 2000 13:43:11 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com >SomeClass* x = new SomeClass [n]; >.. >free (x); perfect! It did not come to my mind. Using free will not execute the *any* C++ destructors/opeators which is fatal.... That is the major difference. Thank you very much! vikas _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com