|
-
June 26th, 2009, 01:59 AM
#1
using dll, assertion failed afxgetthread()
I am designing a project in which am calling a function that is exported from a dll, the dll is designed by vc++ 6.0 and contains a project that is MFC application wizard based with dialog boxes and stuff.
For calling that MFC application wizard based object in my dll i have declared the application class variable of mfc based project in a function thats not a member of any predefined class and also have exported this function after including the required files.My First question is "is this method correct??"
Next I am Using this dll in My Other Language(fortran) and I am calling this function from a sub-routine in that language.I build the project without any error and whenever i execute the project I am given the error
"Debug Assertion Failed!
Program:........
File :appcore.cpp
Line:85
on debugging i got to know that the assertion thats failed is
[code]
ASSERT(AfxGetThread()==NULL);
Please help me out pf this.......
thanx
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|