| Thanks Oleg. 
 Removed both the leaks by doing following:
 
 1) For Label Leaks
 
 if(NULL != m_pCalendarEventLabels)
 {
 m_pCalendarEventLabels->RemoveAll();
 CMDTARGET_RELEASE(m_pCalendarEventLabels);
 delete m_pCalendarEventLabels;
 m_pCalendarEventLabels = NULL;
 }
 
 Also I commented Out call:
 //m_pCalendarEventLabels->InitDefaultValues();
 
 Is it ok if I comment out this line?
 
 2) For Custom Memory Provider Leaks
 
 In the desstructor:-
 
 CXTPCalendarData* pData = GetCalendarCtrl().GetDataProvider();
 
 if(pData)
 {
 pData->ClearCache();
 CMDTARGET_RELEASE(pData);
 pData = NULL;
 }
 
 If I remove ClearCache() then there is Huge leak in Data Provider and Event.
 
 Removing those leaks, now my VC++ 6.0 IDE showing me LEAKS in following components of Codejock (I am sharing only few of those LEAKS),
 Please find attached file for List of all Leaks.
 uploads/20081231_035742_CodeJock-Memory.zip - uploads/20081231_035742_CodeJock-Memory.zip
 
 Please note I am using various Codejock Components in my project such as
 
 1) Edit Control
 2) Combobox
 3) Toolbar
 4) Buttons
 
 Please share your views:
 
 
 C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControlEdit.cpp(163) : {22886} client block at
0x021A14D8, subtype 0, 80 bytes long. a
CXTPCommandBarEditCtrl object at $021A14D8, 80 bytes long strcore.cpp(118) : {22867} normal block at 0x021A2A78, 52
bytes long.  Data: <    '  
'   Type> 01 00 00 00 27 00 00
00 27 00 00 00 54 79 70 65  strcore.cpp(118) : {22866} normal block at 0x021A2A20, 28
bytes long.  Data: <             Key> 02 00 00 00 0F 00 00 00 0F
00 00 00 20 4B 65 79  strcore.cpp(118) : {22864} normal block at 0x021A2940, 23
bytes long.  Data: <            user> 01 00 00 00 0A 00 00 00 0A
00 00 00 75 73 65 72  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControlEdit.cpp(42) : {22863} client block at
0x021A2748, subtype 0, 436 bytes long. a CXTPControlEdit
object at $021A2748, 436 bytes long afxtempl.h(370) : {22862} normal block at 0x021A26F0, 20
bytes long.  Data:
<Ð"  à$  ÍÍÍÍÍÍÍÍ> D0 22 1A 02 E0 24 1A 02 CD CD CD
CD CD CD CD CD  strcore.cpp(118) : {22861} normal block at 0x021A2698, 23
bytes long.  Data: <            user> 01 00 00 00 0A 00 00 00 0A
00 00 00 75 73 65 72  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControlButton.cpp(35) : {22860} client block at
0x021A24E0, subtype 0, 372 bytes long. a CXTPControlButton
object at $021A24E0, 372 bytes long strcore.cpp(118) : {22858} normal block at 0x021A2488, 23
bytes long.  Data: <            user> 01 00 00 00 0A 00 00 00 0A
00 00 00 75 73 65 72  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControlButton.cpp(35) : {22857} client block at
0x021A22D0, subtype 0, 372 bytes long. a CXTPControlButton
object at $021A22D0, 372 bytes long C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControls.cpp(1675) : {22856} client block at
0x021A2248, subtype 0, 68 bytes long. a
CXTPOriginalControls object at $021A2248, 68 bytes long afxtempl.h(370) : {22841} normal block at 0x021A1910, 20
bytes long.  Data: <X   H' 
H'  ÍÍÍÍ> 58 17 1A 02 48 27 1A
02 48 27 1A 02 CD CD CD CD  strcore.cpp(118) : {22840} normal block at 0x021A1600, 23
bytes long.  Data: <            user> 01 00 00 00 0A 00 00 00 0A
00 00 00 75 73 65 72  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControlButton.cpp(35) : {22839} client block at
0x021A1758, subtype 0, 372 bytes long. a CXTPControlButton
object at $021A1758, 372 bytes long strcore.cpp(118) : {22836} normal block at 0x021A16E0, 52
bytes long.  Data: <    '  
'   Type> 01 00 00 00 27 00 00
00 27 00 00 00 54 79 70 65  strcore.cpp(118) : {22835} normal block at 0x021A1688, 28
bytes long.  Data: <             Key> 02 00 00 00 0F 00 00 00 0F
00 00 00 20 4B 65 79  strcore.cpp(118) : {22808} normal block at 0x021A1050, 20
bytes long.  Data: <            Keyw> 01 00 00 00 07 00 00 00 07
00 00 00 4B 65 79 77  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPToolBar.cpp(247) : {22807} normal block at
0x021A0FB8, 80 bytes long.  Data: <ô ^ Xð      ÍÍÍÍ> F4 8F 5E 01 58 F0 19 02 00 00 00
00 CD CD CD CD  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro v12.1.1\Source\CommandBars\XTPCommandBar.cpp(200)
: {22806} normal block at 0x021A0F40, 48 bytes long.  Data: <Xð   âJ_       
> 58 F0 19 02 88 E2 4A 5F 00 00 00 00 01 00 00 00  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControls.cpp(51) : {22805} client block at
0x021A0EB8, subtype 0, 68 bytes long. a CXTPControls object
at $021A0EB8, 68 bytes long strcore.cpp(118) : {22804} normal block at 0x021A0D80, 23
bytes long.  Data: <            user> 01 00 00 00 0A 00 00 00 0A
00 00 00 75 73 65 72  D:\Project\Source\PIM90\Pim\SplitWnd\CMCSplitMDIChildWnd.cpp(74)
: {22803} client block at 0x0219F058, subtype 0, 432 bytes long. a CMVToolBarKeyWordSearch object at $0219F058, 432 bytes
long strcore.cpp(118) : {22736} normal block at 0x021A0E50, 37
bytes long.  Data: <            Sele> 01 00 00 00 18 00 00 00 18
00 00 00 53 65 6C 65  strcore.cpp(118) : {22735} normal block at 0x021A0DF8, 25
bytes long.  Data: <             Ite> 02 00 00 00 0C 00 00 00 0C
00 00 00 20 49 74 65  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPCommandBar.cpp(200) : {22720} normal block at
0x021A0A78, 48 bytes long.  Data: <     âJ_       
> 00 07 1A 02 88 E2 4A 5F 00 00 00 00 00 00 00 00  C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro
v12.1.1\Source\CommandBars\XTPControls.cpp(51) : {22719} client block at
0x021A09F0, subtype 0, 68 bytes long. a CXTPControls object
at $021A09F0, 68 bytes long strcore.cpp(118) : {22718} normal block at 0x021A0998, 23
bytes long.  Data: <            user> 01 00 00 00 0A 00 00 00 0A
00 00 00 75 73 65 72  
 |