CDocManager リーチできない共有フォルダよむとデッドロックする
CDocManager::OpenDocumentFile
-- AfxResolveShortcut
-- -- SHGetFileInfo
SHGetFileInfo でリーチできない共有フォルダよむとデッドロックする...
「初回の例外が発生しました : 0x000006BA: RPC サーバーを利用できません。。」
FindFirstFile(etc) だと抜けてくるので、以下に変更
CDocument* CmyApp::OpenDocumentFile(LPCTSTR lpszFileName) { CFileStatus fs; if (! CFile::GetStatus(lpszFileName, fs)) goto EXIT; if (fs.m_attribute & (CFile::volume | CFile::directory) ) goto EXIT; ASSERT(m_pDocManager != NULL); return m_pDocManager->OpenDocumentFile(lpszFileName); EXIT: CuniqGetFrame()->StatusBarSetPaneText( ID_SEPARATOR, CString(lpszFileName) + _T("読込失敗")); return NULL; }