Asked by:
it does not show window and block after doing CFileDialog::DoModal()

Question
-
the uwp app , that is converted by the Desktop App Converter tool, open the filedialog or savedialog by CFileDialog.
it does not show the dialog and the app is blocking.
it does not reproduce, but it occurs more 3 times in my pc (win10.0.17763)
how should i fix it ?
the blocking stack after anayzing dmp that was created in app blocking state,
see the below:
win32u.dll!_NtUserMsgWaitForMultipleObjectsEx@20() Unknown user32.dll!RealMsgWaitForMultipleObjectsEx() Unknown duser.dll!CoreSC::DUIMsgWaitForMultipleObjectsEx() Unknown user32.dll!_MsgWaitForMultipleObjectsEx@20() Unknown shell32.dll!SHProcessMessagesUntilEventsEx(struct HWND__ *,void * *,unsigned long,unsigned long,unsigned long,unsigned long) Unknown shell32.dll!SHProcessMessagesUntilEvent(struct HWND__ *,void *,unsigned long) Unknown shell32.dll!CDefView::_SetItemCollection(struct IItemCollection *,unsigned int,enum UPDATE_FLAGS,class CEventResult *) Unknown shell32.dll!CDefView::_CreateNewCollection(enum UPDATE_FLAGS,int,enum FILTER_OPERATION_FLAGS) Unknown shell32.dll!CDefView::_CreateInitialCollection(enum UPDATE_FLAGS) Unknown shell32.dll!CDefView::CreateViewWindow3(struct IShellBrowser *,struct IShellView *,unsigned long,enum FOLDERFLAGS,enum FOLDERFLAGS,enum FOLDERVIEWMODE,struct _GUID const *,struct tagRECT const *,struct HWND__ * *) Unknown shell32.dll!CExplorerBrowser::_CreateViewWindow(struct tagRECT const *,struct HWND__ * *) Unknown shell32.dll!CExplorerBrowser::_SwitchView(struct IShellFolder *,struct _ITEMIDLIST_ABSOLUTE const *,int,class TelemetryCorrelationVectorServiceProvider *) Unknown shell32.dll!CExplorerBrowser::_BrowseToView(struct _ITEMIDLIST_ABSOLUTE const *,int) Unknown shell32.dll!CExplorerBrowser::_BrowseObjectInternal(struct _ITEMIDLIST_RELATIVE const *,unsigned int) Unknown shell32.dll!CExplorerBrowser::_OnBrowseObject(void) Unknown shell32.dll!CExplorerBrowser::BrowseObject(struct _ITEMIDLIST_RELATIVE const *,unsigned int) Unknown comdlg32.dll!CFileOpenSave::_BrowseObject() Unknown comdlg32.dll!CFileOpenSave::_JumpToInitialLocation() Unknown comdlg32.dll!CFileOpenSave::_InitOpenSaveDialog() Unknown comdlg32.dll!CFileOpenSave::s_OpenSaveDlgProc(struct HWND__ *,unsigned int,unsigned int,long) Unknown user32.dll!__InternalCallWinProc@20() Unknown user32.dll!UserCallDlgProcCheckWow() Unknown user32.dll!DefDlgProcWorker() Unknown user32.dll!_DefDlgProcW@16() Unknown user32.dll!__InternalCallWinProc@20() Unknown user32.dll!UserCallWinProcCheckWow() Unknown user32.dll!CallWindowProcW() Unknown uwp_app.exe!_AfxActivationWndProc(HWND__ * hWnd, unsigned int nMsg, unsigned int wParam, long lParam) Line 455 C++ user32.dll!__InternalCallWinProc@20() Unknown user32.dll!UserCallWinProcCheckWow() Unknown user32.dll!SendMessageWorker() Unknown user32.dll!InternalCreateDialog() Unknown user32.dll!InternalDialogBox() Unknown user32.dll!_DialogBoxIndirectParamAorW@24() Unknown user32.dll!_DialogBoxIndirectParamW@20() Unknown comdlg32.dll!<lambda>(void)() Unknown comdlg32.dll!CFileOpenSave::Show(struct HWND__ *) Unknown > uwp_app.exe!CFileDialog::DoModal() Line 775 C++ uwp_app.exe!CMainFrame::DoModalOpenFileDialog(wchar_t * pBuffer, CFileDialog & dlg, CFX_WideString csDefFile, int bIncludePDF, int bIncludeFDF, int bMulitFiles) Line 558 C++ uwp_app.exe!CMainFrame::OpenFile() Line 1432 C++ uwp_app.exe!_AfxDispatchCmdMsg(CCmdTarget * pTarget, unsigned int nID, int nCode, void(CCmdTarget::*)() pfn, void * pExtra, unsigned int nSig, ... ...
- Edited by youqiang_wu Friday, April 17, 2020 7:13 AM
- Moved by Jeanine ZhangMicrosoft contingent staff Monday, April 20, 2020 1:27 AM
Friday, April 17, 2020 7:11 AM
All replies
-
Hi,
This forum is about c++ development. For your case which is more related to UWP, I suggest you should ask it in UWP forum for better support.
Best Regards,
Jeanine Zhang
Friday, April 17, 2020 9:14 AM -
ok, i will move it to uwp forum!Friday, April 17, 2020 10:50 AM