Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - Assert in CMarkupStatic
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Assert in CMarkupStatic

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Status: Offline
Points: 538
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Assert in CMarkupStatic
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2008 at 4:26am
Thanks. Please move this assert in the end of method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Status: Offline
Points: 538
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2008 at 4:47am
I don't think this correction was added to the last 12.1.1 release?
 
-cpede
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 December 2008 at 2:10am
Why ? You still can reproduce it ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.094 seconds.