<?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 : an error msg &quot;a required resource is unavailable.&quot;</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : an error msg &quot;a required resource is unavailable.&quot;]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 02:09:01 +0000</pubDate>
  <lastBuildDate>Mon, 14 Oct 2013 21:24:50 +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=21911</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[an error msg &quot;a required resource is unavailable.&quot; : I&amp;#039;m using XTPSyntaxEditCtrl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21911&amp;PID=71668&amp;title=an-error-msg-a-required-resource-is-unavailable#71668</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8280">buy_ssd</a><br /><strong>Subject:</strong> 21911<br /><strong>Posted:</strong> 14 October 2013 at 9:24pm<br /><br /><P>I'm using XTPSyntaxEditCtrl in my mfc project (Visual studio stype UI, VS2010, WIN7)</P><DIV>Every 60~100 times saving my edit file, it stops working.<BR>All screens in my projects are stopped. No cursor, no mouse pointer, that means project can't be printed on the screen.</DIV><DIV><BR>So i ran it in debug mode, then i found&nbsp;an error&nbsp;message, "a required resource is unavailable."<BR>I was googling that message, and they said it was result of unreleased DC such as below.<BR></DIV><DIV>CDC *pDC = CDC::FromHandle(pBookMark-&gt;hDC)&nbsp;&nbsp;line790, XTPSyntaxEditPaintManager.cpp<BR>When function "FromHandle(hCD)" is called, and there's no CDC in its argument, function GetDC&nbsp;might be&nbsp;called.<BR>When function GetDC is called, object from GetDC must be&nbsp;released by function "ReleaseDC" but i couldn't found it in your syntaxedit project.<BR><BR>And I'm not sure that is the only problem. <BR><BR>That is so fatal problem to me and it has to be solved urgently.<BR>After saving 60~100 times, i can't use my project. </DIV><DIV>no&nbsp;memories for dc,&nbsp;my project&nbsp;is no longer painted correct.<BR></DIV><DIV>Please let me explain how do i handle this problem</DIV><DIV>I've spent a lot of time trying to resolve this, but i couldn't.</DIV><DIV>&nbsp;</DIV><DIV>Waiting for help TT_TT</DIV><DIV>&nbsp;</DIV><DIV>Thanks !<BR></DIV>]]>
   </description>
   <pubDate>Mon, 14 Oct 2013 21:24:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21911&amp;PID=71668&amp;title=an-error-msg-a-required-resource-is-unavailable#71668</guid>
  </item> 
 </channel>
</rss>