gotcha. thanks. I'm still debugging the code... I'm getting issues, whether or not I have a leak. so I'll try that. maybe it's getting invalid memory. Thanks, ~~TheCreator~~ Visit TDS for quality software and website production http://tysdomain.com msn: [EMAIL PROTECTED] skype: st8amnd127 ----- Original Message ----- From: Thomas Hruska To: [email protected] Sent: Wednesday, April 30, 2008 8:04 AM Subject: Re: [c-prog] help with a bit of code: removing a value from a templated container
Tyler Littlefield wrote: > I'm doing it to learn. thanks. I should've seen that. it was ratherh late. Also, Would there be a way to hold the memory while I use new/delete to reallocate? > Thanks, > ~~TheCreator~~ A local pointer? Basically: - Allocate (assign to temporary local pointer) - Copy memory to new location - Free (delete old memory) - Assign temporary pointer to 'this' pointer. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/ [Non-text portions of this message have been removed]
