Luc Le Blanc said (on or about) 01/17/2009 09:08: > Philip Sheard wrote: > > >> I am bit confused, because AFAIK in c# you cannot delete an >> object explicitly - only the garbage collector can delete >> objects. >> > > Yes, but I'm in C++ here, so I had to take care of that. > > >> And your code looks a bit odd, too. >> > > My C++ is a bit rusty. The C# code is a numerical program I > had hoped to port in C but I had to pick C++ because of the > heavy use of operator overloading for vector and matrices. > > >> Should it not be delete [] gr? >> > > Yes, you're right. And it works. > Another reader suggested "delete gr[];" This doesn't compile. > > Yeah, that was a typo that I didn't note until after pressing send. I figured it would point you in the right direction. Mea culpa, mea culpa, etc... dga
-- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
