![]() |
Memory Leak Problem |
Post Reply ![]() |
Author | |
sand1212 ![]() Newbie ![]() ![]() Joined: 29 March 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() Posted: 16 May 2007 at 1:30am |
Hi,
I added InternalRelease(), but when I close the app it occurs access violation.
Message :
Detected memory leaks!
Dumping objects -> strcore.cpp(118) : {18397} normal block at 0x02F41C70, 34 bytes long. Data: < u s > 01 00 00 00 0A 00 00 00 0A 00 00 00 75 00 73 00 C:\Documents and Settings\OnFoot\My Documents\Visual Studio 2005\Projects\EOEIS\MainFrm.cpp(975) : {18396} client block at 0x02F41A08, subtype 0, 556 bytes long. a CXTPControlGallery object at $02F41A08, 556 bytes long Object dump complete. Soucrce Code:
CXTPRibbonTab* pTabHome = pRibbonBar->AddTab(IDS_TAB_HOME);
CXTPControlGallery* pControlMethod = new CXTPControlGallery(); <== this line. CXTPRibbonGroup* pGroupStyles = pTabHome->AddGroup(ID_METHOD_SELECT_LIST); pControlMethod = (CXTPControlGallery*)pGroupStyles->Add(new CXTPControlGallery(), ID_METHOD_SELECT_LIST); CMenu menuQuickStyles; pControlMethod->SetCommandBar(pPopupBar); |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Change this line to CXTPControlGallery* pControlMethod ;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
zhuhuaizhong ![]() Newbie ![]() Joined: 08 April 2010 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
I got the same msg - "memory leaks" , but in the "Ribble Sample" , the "new CXTPControlGallery(); " works well ! . It' s amazing.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |