FIXED: Assert on Shutdown with 20.3 |
Post Reply |
Author | |
MarkusA
Groupie Joined: 20 November 2015 Location: Austria Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: 01 June 2022 at 5:19am |
Hello,
After updating Visual Studio 2022 from Version 17.1.6 to 17.2.2 we get many Debug Asserts on Application Shutdown with Codejock 20.3.0 when your global Markup-Strings are destructed. Callstack:
The call to AFXASSUME was added by Microsoft to their CCmdTarget-Implementation with the new MFC Version 14.32.31326 delivered with 17.2.2 (I assume it comes with 17.2.0, but can't verify this). The Version delivered with Visual Studio 17.1.6 (MFC 14.31.31103) does not have this line of code. This happens because the Markup-Strings were destroyed after COM was unitialized by MFC -> Can be reproduced with your Shortcutbar-Example: Just start a debug of it in Visual Studio 2022 17.2.2 and immediately close the Application via the Close-Button. Btw. if SkinFramework is used the Application crashes with an Access Violation instead of showing the Debug Assertion because the Skinmanager tries to hook the Debug Assertion Dialog - which might be impossible because most parts of the application should not exist anymore at this time -> Just try to debug your SkinControls Sample and close the Application. This happens at least with the legacy API hook as we can't use the new Detours hook. Greetings Markus
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
+1
We see the same after migration from 19.1 to 20.3 |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
docontrol
Groupie Joined: 07 December 2009 Location: Denmark Status: Offline Points: 35 |
Post Options
Thanks(0)
|
I am seeing the same issue here after an upgrade of VS 2022 17.1.6 to 17.2.3.
|
|
docontrol
Groupie Joined: 07 December 2009 Location: Denmark Status: Offline Points: 35 |
Post Options
Thanks(3)
|
I received this workaround from Alexander at CodeJock and it solved the problem in my case:
Hello Ronnie,
That was a known issue and it has already been fixed and the fix will be available in the next version. So you don't wait for the next version you can integrate a simple patch. All you need is to replace the body of CXTPMarkupObject::CXTPMarkupObject(int nFlags) constructor in \Source\Markup\XTPMarkupObject.cpp with the following below code: { if (0 == (nFlags & flagNoCom)) { EnableAutomation(); #ifdef _XTP_ACTIVEX EnableTypeLib(); #endif } } After adding this change don't forget to re-build the configurations you use. Please confirm if the fix works for you. Thank you. Regards, Alexander |
|
bricaro
Newbie Joined: 15 February 2018 Location: Austria Status: Offline Points: 4 |
Post Options
Thanks(0)
|
I can confirm this problem with both 20.3 and 19.3. Implemented the fix, suggested by docontrol, in 20.3 and it solved the problem for me.
|
|
MarkusA
Groupie Joined: 20 November 2015 Location: Austria Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Thank you for sharing this workaround. Problem solved.
|
|
MrPhil
Newbie Joined: 23 February 2012 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
This problem was fixed using the code fix, but has returned. I have not rebuilt ToolkitPro since we fixed the issue.
I was told to expect the update in October. Is that still the case?
|
|
MrPhil
Newbie Joined: 23 February 2012 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
After updating to 22.0.0, I still have this issue.
|
|
astoyan
Admin Group Joined: 24 August 2013 Status: Offline Points: 304 |
Post Options
Thanks(0)
|
Thanks everyone who reported this and related issues here and in support. We've added a number of related fixes and all those use cases that were managed to reproduce have been fixed. The fixes will be included into the upcoming v22.1 update that hopefully will be released in February. After you get the update please re-test all use cases when those crashes occurred in your project and provided as much as possible details about the remaining crashes so we can check and fix them quickly.
Thank you. Regards, Alexander
|
|
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 |