ti****@kingsoft.net wrote:
if my program have memory leak
some time i could't exit the program normally
but some time i can. how should i do?
It's hard to advise you with so little information. Do you use smart
pointers (e.g., std::auto_ptr, boost::shared_ptr, etc.) for *all*
objects allocated on the heap? If not, start there. Are you using VC++
6.0 with their standard library, and when you exit, the IDE reports a
memory leak? If so, I've read that switching to STL-port can fix it.
Cheers! --M