Print Page | Close Window

Multiple instances of CXTPCalendarData

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=22346
Printed Date: 26 April 2024 at 3:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiple instances of CXTPCalendarData
Posted By: ramunas_
Subject: Multiple instances of CXTPCalendarData
Date Posted: 04 July 2014 at 5:16am
Hello, 

If i create multiple instances of CXTPCalendarData, then on closing application program crashes.

CXTPCalendarData* dp1 = new CXTPCalendarData();
dp1.Open();
dp1.Close();
dp1.InternalRelease();
dp1 = NULL;

CXTPCalendarData* dp2 = new CXTPCalendarData();
dp2.Open();
dp2.Close();
dp2.InternalRelease();
dp2 = NULL;

Is it possible at all? If method "InternalRelease()" are not called it will not crash, but then it will not clean up, and leaks memory.






Replies:
Posted By: astoyan
Date Posted: 08 July 2014 at 10:25pm
Hello Ramunas,

Unfortunately we are unable to re-produce the issue. Can you please provide the version number of ToolkitPro you are using and also more detailed description of the usage scenario, e.g. at what point you create those instance and when you release them?

Thank you.
Regards,
  Alexander Stoyan


Posted By: ramunas_
Date Posted: 09 July 2014 at 2:11am
We use Calendar Pro 16.2.0.
I checked, and you are right there is no problems with CXTPCalendarData, multiple instances of it can be created. Problem arises with my custom CXTPCalendarData object.



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