Hello Most excellent Stackoverflowians
Using visual studio 2008 Team System,
I have a c++ dll (mfc statically linked regular dll) which has a simple function
extern "C" __declspec(dllexport) int MyExportedFunction( )
{
AFX_MANAGE_STATE(AfxGetStaticModuleState( ))
CString tempString ;
....
}
The DLLImport from the c# application tothe dll works and i can step inside this function from the debugger from my c# code However (yes here it comes!) inside the function "MyExportedFunction" , as you can see i instantiate a CString, and w hen this CString instantiation is hit the whole app crashes and the debugger gives me
"Unable to step. the process has been terminated refresh the process list before attempting another attach"
does anyone have any suggestions as to what i might to do fix this problems?
regards Buzz