an error msg "a required resource is unavailable." |
Post Reply |
Author | |
buy_ssd
Newbie Joined: 14 October 2013 Status: Offline Points: 2 |
Post Options
Thanks(0)
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 !
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |