"Francis" <Fra...@delcohome.com> wrote in message
news:2d0701c0e9e6$774849f0$a5e62ecf@tkmsftngxa07...
Would I be right in saying that in a program just using standard
declarations (CStrings, CSTringArrays, etc) memory leaks don't have to be
worried about ?
--
Lordy
> declarations (CStrings, CSTringArrays, etc) memory leaks don't have to be
> worried about ?
Its not a big deal I think, I think those strings allocates and frees memory
on their own... but it might be smart emptying the CString string at end of
the execution, when you dont need it anymore... Maybe I am wrong about the
allocation, because I dont use CString, and I have never looked deeply into
the class, and I always use small, small strings like a matter of 40
bytes.... it could cause some problems on a server with the program exiting
and executing every minute for 4 years without reboot :)
--
Emil Chr. Melar
You can't think of memory managed by classes such as CString, they are a bit
more careful about these concepts than we are.They allocate memery
themselves and at the end deallocate it, dont worry about the built in
classes and focus on the codes you are writing.
Good Luck,
--
M. Shokuie Nia,
MSVC++ Programmer,
EMail : sho...@hotmail.com
Lordy <sp...@recycle.bin> wrote in message
news:MPG.15809220d...@news.ntlworld.com...