none
Folder Browser Dialog box crashes RRS feed

  • Question

  • Hi, in my winform using .net 3.5
    when i click on a button to open a Folder Browser Dialog box,
    the dialog box freezes for half minute and then displays the folders.
    And when i select a folder in the dialog box, the application terminates immediately with an unhandled win32 exception and opens up JIT debugger.

    I have this issue with both C# and VB.net winforms

    The code looks something like this:
    fBD = new FolderBrowserDialog();

     try
                {
                    fBD.Description = "Choose Target directory";

                   if (fBD.ShowDialog() == DialogResult.OK)
                    {
    lblPath.Text = fBD.SelectedPath.ToString();
                    }
                }

      catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString(), "Exception occured", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

    The exception is not caught by the above try-catch block.

    The dialog boxe freezes every time for nearly 1/2 minute, but crashes most of the times and works very few times.

    Thanks,
    -srinivas yelamanchili

    Wednesday, May 7, 2008 11:07 PM

Answers

  • On looking at the Application Event Manager log: faulting module shwrq.dll
    i realized that the crash was caused by the WRQ Reflection software.
    On uninstalling 'Reflection Multi-Host' and 'Reflection for HP with NS/VT',
    the problem went away.

    Now the folder dialog box populates immediately and doens't crash at all.

    Thanks,
    -srinivas yelamanchili

    Thursday, May 8, 2008 11:32 PM

All replies

  • Uninstall any shell extension handlers you have.
    Thursday, May 8, 2008 12:11 AM
    Moderator
  • Hi,
    i used the shell extension manager ShellMenuView and didn't find anything weird.

    The winform runs okay from visual studio and only crashes when launched from start menu at the folder dialog box
    and with error:

    Unhandled exception at 0x10007ea5 in xyz.exe: 0xC0000005: Access violation reading location 0x00000008.

    How to find the other program that's accessing the above memory address?

    Thanks,
    -srinivas


    Thursday, May 8, 2008 10:17 PM
  • On looking at the Application Event Manager log: faulting module shwrq.dll
    i realized that the crash was caused by the WRQ Reflection software.
    On uninstalling 'Reflection Multi-Host' and 'Reflection for HP with NS/VT',
    the problem went away.

    Now the folder dialog box populates immediately and doens't crash at all.

    Thanks,
    -srinivas yelamanchili

    Thursday, May 8, 2008 11:32 PM