Application crash when open File Open dialog from WPF application. RRS feed

  • Question

  • Hi all,

    Crash occurred when launch File Open dialog from WPF application in Windows 10 OS.

    Below is the code snippet

    private void OnButtonClick(object sender, RoutedEventArgs e)

          OpenFileDialog fileOpenDialog = new OpenFileDialog();

          fileOpenDialog.Multiselect = false;



    Crash details from Windows Event Viewer:

    Faulting application name: <ApplicationName>, version: <>, time stamp: 0x5cf7ec5f
    Faulting module name: ntdll.dll, version: 10.0.17134.137, time stamp: 0xf4df6dc2
    Exception code: 0xc0000005
    Fault offset: 0x0000000000024642
    Faulting process id: 0x116c
    Faulting application start time: 0x01d52ae2e58d0cbf
    Faulting application path: <ApplicationPath>
    Faulting module path: C:\windows\SYSTEM32\ntdll.dll
    Report Id: c1619315-db69-4306-becd-529b6d58c593
    Faulting package full name: 
    Faulting package-relative application ID: 

    Could you please check?

    Monday, August 5, 2019 4:27 AM

All replies

  • Hi Vineeth B, 

    Thank you for posting here.

    I make a test based on you code, but I get no exception.

    For your question, I have found two related references.

    1. Ntdll.dll causing application crash.
    2. How to Fix Ntdll.dll Errors.

    You can try the solutions in the references.

    Besides, you can also debug your application.

    Debugging WPF

    Hope them can help you.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Tuesday, August 6, 2019 5:34 AM