![]() |
App Crash on Exit |
Post Reply
|
| Author | ||
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Topic: App Crash on ExitPosted: 03 March 2017 at 4:49am |
|
|
It always crashes in this line when I exit the app.
file: XTPImageManager.cpp void CXTPImageManagerIconHandle::Clear() { ... m_pRInfo->pResource->Clear(m_pRInfo); // Crashes here ... } What can cause this?
|
||
|
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit Language: Visual C++ (VS 2019) |
||
![]() |
||
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 March 2017 at 9:00am |
|
|
Hello evoX,
I think you should increase reference counter of CXTPImageManagerIcon, instead of
Regards, Oleksandr Lebed |
||
![]() |
||
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 March 2017 at 12:23pm |
|
|
Thanks! I will try that. I have to change it many places.
|
||
|
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit Language: Visual C++ (VS 2019) |
||
![]() |
||
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 March 2017 at 12:24pm |
|
|
I think it will be better if the GetImage function from ToolkitPro to include the AddRef automatically.
|
||
|
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit Language: Visual C++ (VS 2019) |
||
![]() |
||
Fredrik
Senior Member
Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2017 at 6:04am |
|
I agree - because how do you know when you have to call InternalAddRef and when not? The documentation doesn't say anything about it.
|
||
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
||
![]() |
||
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 |