Print Page | Close Window

controls

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15360
Printed Date: 13 September 2025 at 5:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: controls
Posted By: Pariksh*t
Subject: controls
Date 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




Replies:
Posted By: Marcus
Date Posted: 14 October 2009 at 5:05am
If there's a memory leak, MFC will report it when your app exits in debug mode.


Posted By: Pariksh*t
Date Posted: 14 October 2009 at 5:11am
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?


Posted By: Marcus
Date Posted: 14 October 2009 at 11:51am

If there's a leak, you will have to handle it, otherwise XT deleted the object.



Posted By: rdhd
Date Posted: 15 October 2009 at 12:23pm
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).



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net