On Sat, 19 Nov 2005 08:16:19 -0600 Michael Sullivan
<[EMAIL PROTECTED]> wrote:
| Actually, I solved the error for my situation last night - I just
| forgot to write it in as SOLVED.  I had created a temporary pointer,
| then assigned the temporary pointer to a variable I was planning to
| return from a method, then deleted the temporary pointer.  I'm not
| used to using pointers.  I've always heard that you should always
| delete your pointers when you're done with them and for some reason I
| thought the delete keyword deleted the pointer instead of the memory
| it was pointing at...

Consider using boost::shared_ptr<> instead. You don't have to worry
about delete or exception-checking then.

-- 
Ciaran McCreesh : Gentoo Developer (Look! Shiny things!)
Mail            : ciaranm at gentoo.org
Web             : http://dev.gentoo.org/~ciaranm

Attachment: signature.asc
Description: PGP signature

Reply via email to