<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CMarkupStatic crashes when mouse moves</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CMarkupStatic crashes when mouse moves]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 18:19:59 +0000</pubDate>
  <lastBuildDate>Fri, 19 Sep 2008 03:20:32 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12160</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CMarkupStatic crashes when mouse moves : Hi,Adding two lines to SetMarkupText(&amp;#034;some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12160&amp;PID=41194&amp;title=cmarkupstatic-crashes-when-mouse-moves#41194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4542">BerntK</a><br /><strong>Subject:</strong> 12160<br /><strong>Posted:</strong> 19 September 2008 at 3:20am<br /><br />Hi,<br><br>Adding two lines to SetMarkupText("some XAML") methode solves the problem:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>void CMarkupStatic::SetMarkupText(LPCSTR lpszMarkup)<br>{<br>&nbsp;&nbsp;&nbsp; MARKUP_RELEASE(m_pUIElement);<br>&nbsp;&nbsp;&nbsp; <font color=RED>MARKUP_RELEASE(m_pMouseOver);<br>&nbsp;&nbsp;&nbsp; m_pActiveElement = NULL;</font><br><br>&nbsp;&nbsp;&nbsp; m_pUIElement = Parse(lpszMarkup);<br><br>&nbsp;&nbsp;&nbsp; if (m_hWnd) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Invalidate(FALSE);<br>}<br></pre></td></tr></table><br><br><br>Bernt<br>]]>
   </description>
   <pubDate>Fri, 19 Sep 2008 03:20:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12160&amp;PID=41194&amp;title=cmarkupstatic-crashes-when-mouse-moves#41194</guid>
  </item> 
  <item>
   <title><![CDATA[CMarkupStatic crashes when mouse moves :  I use CMarkupStatic for displaying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12160&amp;PID=41032&amp;title=cmarkupstatic-crashes-when-mouse-moves#41032</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4542">BerntK</a><br /><strong>Subject:</strong> 12160<br /><strong>Posted:</strong> 15 September 2008 at 11:26am<br /><br />I use CMarkupStatic for displaying infotext for some records... <br>When I move through the records by keypress I update the CMarkupStatic by SetMarkupText("some XAML") for every record. <br><br>Problem: If I move the mouse across the CMarkupStatic window - while scolling though the records - the application crashes at the function:<br><br>CXTPMarkupObject* CXTPMarkupObject::GetValue(CXTPMarkupDependencyProperty* pProperty)<br><br>were the passed pProperty is invalid.<br><br>Callstack:<br><br>ToolkitPro1202vc80D.dll!CXTPMarkupObject::GetValue(CXTPMarkupDependencyProperty * pProperty=0x032c8250)&nbsp; Zeile 701 + 0xe Bytes&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupStyle::GetBasedStyle()&nbsp; Zeile 154 + 0xe Bytes&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupInputElement::AddStyleTriggers(CXTPMarkupStyle * pStyle=0x032f7228, CXTPMarkupDependencyProperty * pProperty=0x032c8588, CXTPMarkupObject * pNewValue=0x032c8530)&nbsp; Zeile 480 + 0x8 Bytes&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupInputElement::FireTriggers(CXTPMarkupDependencyProperty * pProperty=0x032c8588, CXTPMarkupObject * pNewValue=0x032c8530)&nbsp; Zeile 563 + 0x17 Bytes&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupFrameworkElement::OnPropertyChanged(CXTPMarkupDependencyProperty * pProperty=0x032c8588, CXTPMarkupObject * pOldValue=0x032c8ef0, CXTPMarkupObject * pNewValue=0x032c8530)&nbsp; Zeile 411&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupTextBlock::OnPropertyChanged(CXTPMarkupDependencyProperty * pProperty=0x032c8588, CXTPMarkupObject * pOldValue=0x032c8ef0, CXTPMarkupObject * pNewValue=0x032c8530)&nbsp; Zeile 298&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupObject::SetValue(CXTPMarkupDependencyProperty * pProperty=0x032c8588, CXTPMarkupObject * pValue=0x00000000)&nbsp; Zeile 628 + 0x1b Bytes&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupInputElement::OnMouseLeave(CXTPMarkupMouseEventArgs * __formal=0x0012cf08)&nbsp; Zeile 266&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupContext::HandleMouseEnter(CXTPMarkupInputElement * pMouseOver=0x032f9298, CPoint point={...})&nbsp; Zeile 465 + 0x1c Bytes&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupContext::HandleMouseMove(CXTPMarkupUIElement * pUIElement=0x032d26d0, CPoint point={...})&nbsp; Zeile 500&nbsp;&nbsp;&nbsp; C++<br>ToolkitPro1202vc80D.dll!CXTPMarkupContext::OnWndMsg(CXTPMarkupUIElement * pUIElement=0x032d26d0, unsigned int message=512, unsigned int wParam=0, long lParam=11796582, long * pResult=0x0012d384)&nbsp; Zeile 672&nbsp;&nbsp;&nbsp; C++<br>Toolsd.dll!CMarkupStatic::OnWndMsg(unsigned int message=512, unsigned int wParam=0, long lParam=11796582, long * pResult=0x0012d384)&nbsp; Zeile 79 + 0x28 Bytes&nbsp;&nbsp;&nbsp; C++<br><br><br>If I exclude CMarkupStatic::OnWndMsg() no crashes (but also no handling of hyperlinks,...)<br><br>I also tried the MarkUpSample. I added a OnTimer function to update the text of the CMarkupStatic periodically every 200ms. Everthing is fine except when I move the mouse across the control. After some moves the hyperlink does not show the mouseover and when exiting the program it asserts.<br><br>tx for help,<br>Bernt<br><br>]]>
   </description>
   <pubDate>Mon, 15 Sep 2008 11:26:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12160&amp;PID=41032&amp;title=cmarkupstatic-crashes-when-mouse-moves#41032</guid>
  </item> 
 </channel>
</rss>