Archived Forum Post

Index of archived forum posts

Question:

SendToDistributionList Memory Leaks

Jul 06 '12 at 11:03

Using VS2008 compiling example code: http://www.example-code.com/vcpp/smtp_distributionList.asp There is a memory leak.

LoadFromFile("distributionList.txt");

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.


Answer

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:

32-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.3.1-x86-vc9.zip
64-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.3.1-x86_64-vc9.zip