Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Multiple instances of CXTPCalendarData
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple instances of CXTPCalendarData

 Post Reply Post Reply
Author
Message
ramunas_ View Drop Down
Newbie
Newbie


Joined: 04 July 2014
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramunas_ Quote  Post ReplyReply Direct Link To This Post Topic: Multiple instances of CXTPCalendarData
    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.



Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ramunas_ View Drop Down
Newbie
Newbie


Joined: 04 July 2014
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramunas_ Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.