Встретил багу:
unsigned int _stdcall Asynch_Proc (void* dammy)
{
asynchDataCallBackHandler = new CAsynchDataCallback();
CoInitialize(NULL);
while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0)
{
DispatchMessage(&msg);
}
delete asynchDataCallBackHandler;
CoUninitialize();
}
Вызывает access violation в CoUninitialize();.
unsigned int _stdcall Asynch_Proc (void* dammy)
{
asynchDataCallBackHandler = new CAsynchDataCallback();
CoInitialize(NULL);
while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0)
{
DispatchMessage(&msg);
}
CoUninitialize();
delete asynchDataCallBackHandler;
}
А такой такой код не вызывает.