Print Page | Close Window

Assert in CMarkupStatic

Printed From: Codejock Forums
Category: General
Forum Name: XAML Snippets
Forum Description: Post your XAML snippets here for everyone to enjoy :)
URL: http://forum.codejock.com/forum_posts.asp?TID=12084
Printed Date: 21 November 2024 at 12:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Assert in CMarkupStatic
Posted By: cpede
Subject: Assert in CMarkupStatic
Date Posted: 05 September 2008 at 9:55am
When using the CMarkupStatic control I sometimes get an Assertion because the m_dwRef is large (=13). I cannot provoke it every time, but it has arrived after I call SetMarkupText more than one time. And maybe because I resize the app?
 
 
CXTPMarkupContext::~CXTPMarkupContext()

{

if (m_pImageManager)

{

((CCmdTarget*)m_pImageManager)->InternalRelease();

}

ASSERT(m_dwRef <= 1);

MARKUP_RELEASE(m_pMouseOver);

MARKUP_RELEASE(m_pKeyboardNavigation);

 
Any idears? Using XTP v1200.
 
-cpede



Replies:
Posted By: Oleg
Date Posted: 08 September 2008 at 4:26am
Thanks. Please move this assert in the end of method.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cpede
Date Posted: 22 December 2008 at 4:47am
I don't think this correction was added to the last 12.1.1 release?
 
-cpede


Posted By: Oleg
Date Posted: 23 December 2008 at 2:10am
Why ? You still can reproduce it ?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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