Well...the given line actually looks fine...nevertheless, I do not understand the line before...why are you calling 'AfxGetMainWnd()'? You are not using the returned 'CWnd' anywhere... :confused:Quote:
Originally posted by martenbengtsson
Thanks for helping me out here.
In the call stack I see
CSerComm::CreateThread() line 78 + 28 bytes
CGsdoc_b1Doc::StartThread() line 609
CGsdoc_b1App::InitInstance() line 156
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x001327b2, int 1) line 39 + 11 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x001327b2, int 1) line 30
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 7c5987e7()
So the error occured in the CSerComm::CreateThread() on line 78. This where AfxBeginThread is called.
