Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1165 Unhandled exception

KeePass_2.x
closed
nobody
None
5
2014-07-19
2013-09-21
Daveoh
No

I had two tabs open. I middle clicked on the one which wasn't selected (I'm not sure if this did anything) and then I clicked on it, and then this exception occurred.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

** Exception Text **
System.ArgumentException: Value does not fall within the expected range.
at KeePass.UI.DocumentManagerEx.set_ActiveDocument(PwDocument value)
at KeePass.Forms.MainForm.UpdateUI(Boolean bRecreateTabBar, PwDocument dsSelect, Boolean bUpdateGroupList, PwGroup pgSelect, Boolean bUpdateEntryList, PwGroup pgEntrySource, Boolean bSetModified, Control cOptFocus)
at KeePass.Forms.MainForm.UpdateUI(Boolean bRecreateTabBar, PwDocument dsSelect, Boolean bUpdateGroupList, PwGroup pgSelect, Boolean bUpdateEntryList, PwGroup pgEntrySource, Boolean bSetModified)
at KeePass.Forms.MainForm.MakeDocumentActive(PwDocument ds)
at KeePass.Forms.MainForm.OnTabMainSelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.TabControl.WmSelChange()
at System.Windows.Forms.TabControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies **
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18052 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
KeePass
Assembly Version: 2.23.0.16981
Win32 Version: 2.23.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18047 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0
b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18044 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0b77a5c561934e089/System.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0
b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0
b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18047 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
KeePass.XmlSerializers
Assembly Version: 2.23.0.16981
Win32 Version: 2.23.0.16981
CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0
b77a5c561934e089/System.Xml.dll
----------------------------------------

** JIT Debugging **
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true"/>
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

1 Attachments

Discussion

  • Paul
    Paul
    2013-09-21

    I can reproduce this on KeePass 2.23.

    cheers, Paul

     
  • Dominik Reichl
    Dominik Reichl
    2013-09-21

    • status: open --> closed
     
  • Dominik Reichl
    Dominik Reichl
    2013-09-21

    Thanks for reporting this issue! I've fixed it now.

    Here's the latest development snapshot for testing:
    http://keepass.info/filepool/KeePass_130921.zip

    Best regards,
    Dominik