![]() |
controls |
Post Reply ![]() |
Author | |
Pariksh*t ![]() Groupie ![]() ![]() Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
![]() ![]() ![]() ![]() ![]() Posted: 14 October 2009 at 1:04am |
hi,
we have added controls in ribbonbar like CXTPControlStatic* pStatic0 = (CXTPControlStatic*)pGroupGallaries->Add(new CXTPControlStatic(), IDC_STATIC_DUMMY); pStatic0->SetWidth(5); pStatic0->SetHeight(20); we have used new... do we need to use delete as we have used new please reply |
|
![]() |
|
Marcus ![]() Groupie ![]() Joined: 04 June 2006 Location: Germany Status: Offline Points: 42 |
![]() ![]() ![]() ![]() ![]() |
If there's a memory leak, MFC will report it when your app exits in debug mode.
|
|
![]() |
|
Pariksh*t ![]() Groupie ![]() ![]() Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
![]() ![]() ![]() ![]() ![]() |
thats true but do i need to explicitly handle it?
or is it handled by xtreme toolkit? and if i need to handle it where i need to use delete operator? |
|
![]() |
|
Marcus ![]() Groupie ![]() Joined: 04 June 2006 Location: Germany Status: Offline Points: 42 |
![]() ![]() ![]() ![]() ![]() |
If there's a leak, you will have to handle it, otherwise XT deleted the object. |
|
![]() |
|
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 931 |
![]() ![]() ![]() ![]() ![]() |
Set a break in the destructor of CXTPControlStatic and see if it is called for the instance you allocated (if there is more than one).
|
|
![]() |
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 |