Using VS2008 compiling example code: http://www.example-code.com/vcpp/smtp_distributionList.asp There is a memory leak.
The reported memory leak errors contain email addresses which are only available in the "distributionList.txt" file. So I'm assuming the memory leak occurs in the CkStringArray.
I tried calling dispose() but that did not fix the leak.
My code does call CkSettings::cleanupMemory(); when the program ends.
*** The memory leak was found to be in mailman.SendToDistributionList, not in CkStringArray.
asked Jul 01 '12 at 17:27
The problem was found and fixed. The leak was actually in mailman.SendToDistributionList. The CkStringArray object did not have any problems.
Here are new VC++ 2008 builds:
answered Jul 03 '12 at 16:11