Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - an error msg "a required resource is unavailable."
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

an error msg "a required resource is unavailable."

 Post Reply Post Reply
Author
Message
buy_ssd View Drop Down
Newbie
Newbie


Joined: 14 October 2013
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote buy_ssd Quote  Post ReplyReply Direct Link To This Post Topic: an error msg "a required resource is unavailable."
    Posted: 14 October 2013 at 9:24pm

I'm using XTPSyntaxEditCtrl in my mfc project (Visual studio stype UI, VS2010, WIN7)

Every 60~100 times saving my edit file, it stops working.
All screens in my projects are stopped. No cursor, no mouse pointer, that means project can't be printed on the screen.

So i ran it in debug mode, then i found an error message, "a required resource is unavailable."
I was googling that message, and they said it was result of unreleased DC such as below.
CDC *pDC = CDC::FromHandle(pBookMark->hDC)  line790, XTPSyntaxEditPaintManager.cpp
When function "FromHandle(hCD)" is called, and there's no CDC in its argument, function GetDC might be called.
When function GetDC is called, object from GetDC must be released by function "ReleaseDC" but i couldn't found it in your syntaxedit project.

And I'm not sure that is the only problem.

That is so fatal problem to me and it has to be solved urgently.
After saving 60~100 times, i can't use my project.
no memories for dc, my project is no longer painted correct.
Please let me explain how do i handle this problem
I've spent a lot of time trying to resolve this, but i couldn't.
 
Waiting for help TT_TT
 
Thanks !
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.047 seconds.