loading dll second time giving error "A required resource was unavailable"
-
And demonstrating a great deal of restraint as well. Good for you. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
wherever i used GetDc() i have done ReleaseDC...Still the error is coming, "A required resource was unavailable". Please help me to resolve this. why 2nd time my application is not launching.? please tell whatelse I need to do ? Thanks
-
The error is very probably in your DLL showing a dialog. Common sources are forgetting to release DCs and GDI objects.
Can u give me your mail id so that I can send you the project. Can u help me ?
-
wherever i used GetDc() i have done ReleaseDC...Still the error is coming, "A required resource was unavailable". Please help me to resolve this. why 2nd time my application is not launching.? please tell whatelse I need to do ? Thanks
sujandasmahapatra wrote:
please tell whatelse I need to do ?
You probably need to do some serious debugging, firstly to find out why and where this message is produced.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
Can u give me your mail id so that I can send you the project. Can u help me ?
Sorry, but I don't want to write your code. I - and most others here - just enjoy helping. The design of your application is definitely broken. That is your problem. Tampering with the existing code is the wrong way. Reconsider the design. Read about dialogs hosting user controls.
-
sujandasmahapatra wrote:
please tell whatelse I need to do ?
You probably need to do some serious debugging, firstly to find out why and where this message is produced.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
it's giving this error First-chance exception at 0x7c812afb in TestRev.exe: Microsoft C++ exception: CResourceException at memory location 0x0012ed28.. Crashing in wincore.cpp -- AfxRegisterClass(WNDCLASS* lpWndClass)
-
it's giving this error First-chance exception at 0x7c812afb in TestRev.exe: Microsoft C++ exception: CResourceException at memory location 0x0012ed28.. Crashing in wincore.cpp -- AfxRegisterClass(WNDCLASS* lpWndClass)
And what does that tell us? Pretty much nothing. You need to look at your code where this error occurs and find out what your program is doing, or trying to do: that is where the error lies.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
The error is very probably in your DLL showing a dialog. Common sources are forgetting to release DCs and GDI objects.
I have got the problem I have implemented the PrecreateWindow for my view class. just check this code. [code] BOOL CMyView::PreCreateWindow(CREATESTRUCT& cs) { cs.lpszClass = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC,::LoadCursor(NULL, IDC_ARROW), NULL, NULL); cs.style |= WS_CLIPSIBLINGS | WS_CLIPCHILDREN; cs.dwExStyle = WS_EX_CLIENTEDGE; return CView::PreCreateWindow(cs); } [/code] If I remove the first line, i.e cs.lpszClass = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC,::LoadCursor(NULL, IDC_ARROW), NULL, NULL); then my dll window is coming all the times from the client call. But it's flickering . So now please help me what can I do to resolve this. I think some of you must have understood the problem, please help me. Thanks a lot.