Its strange or may be my fault of coding please provide me any solution related to this.
I have developed one windows based application(VC++ MFC document-view architecture) in visual studio 2003. In this application I am using Static DLL. To load and free the library following functions are being used : AfxLoadLibrary and AfxFreeLibrary
Architecture is as follows:-
ABC :: Main document-view project.
PQRDLL :: DLL project.
LMNDLL :: DLL project.
The flow of project execution:
1. ABC calls PQRDLL
2. PQRDLL calls LMNDLL,
In InItInstance() of PQRDLL, LMNDLL is loaded using AfxLoadLibrary and on ExitInstance() of PQRDLL ,LMNDLL is unloaded using AfxFreeLibrary.
The same application is running without any problem on Windows XP/Vista/7 (32/64) bit systems. But when I run it on window 8 I get debug assertion in DLLModul.cpp file on line number 124.
that is on,
assert=====> ASSERT(AfxGetThreadState()->m_pPrevModuleState == NULL);
I am not able to debug the code on windows 8 system as visual studio is not installed so I am debugging the problem using message boxes.
I tried a lot but I really not understand what exactly goin on.
I would request you all to please provide me the solution for this problem.
Thanks in advance.