Unhandled exception after pressing page up in print preview

drhotendrhoten Posts: 21
edited November 28, 2005 11:06AM in SQL Compare Previous Versions
While previewing page 1 of 1, I pressed the page up key and received the following exception.

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

************** Exception Text **************
System.ArgumentOutOfRangeException: '-1' is not a valid value for 'StartPage'. 'StartPage' must be greater than or equal to 0.
Parameter name: StartPage
at System.Windows.Forms.PrintPreviewControl.set_StartPage(Int32 value)
at System.Windows.Forms.PrintPreviewControl.WmKeyDown(Message& msg)
at System.Windows.Forms.PrintPreviewControl.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.40607/mscorlib.dll
RedGate.SQLCompare.UI
Assembly Version: 3.1.8.276
Win32 Version: 3.1.8.276
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQLCompare.UI.exe
System.Windows.Forms
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.3600.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.3600.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.3600.0__b03f5f7f11d50a3a/System.Drawing.dll
RedGate.SQLCompare.Engine
Assembly Version: 3.1.8.276
Win32 Version: 3.1.8.276
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQLCompare.Engine.dll
RedGate.SQL.Controls
Assembly Version: 3.3.8.119
Win32 Version: 3.3.8.119
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQL.Controls.dll
RedGate.SQL.Grids
Assembly Version: 3.3.8.119
Win32 Version: 3.3.8.119
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQL.Grids.dll
ActiproSoftware.TabStripPanel
Assembly Version: 2.0.205.0
Win32 Version: 2.0.205.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/ActiproSoftware.TabStripPanel.dll
RedGate.SQL.Shared
Assembly Version: 3.3.8.119
Win32 Version: 3.3.8.119
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQL.Shared.dll
ActiproSoftware.DockableWindow
Assembly Version: 2.0.205.0
Win32 Version: 2.0.205.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/ActiproSoftware.DockableWindow.dll
DevExpress.XtraBars
Assembly Version: 2.1.4.0
Win32 Version: 2.1.4.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/DevExpress.XtraBars.dll
DevExpress.XtraEditors
Assembly Version: 2.0.4.0
Win32 Version: 2.0.4.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/DevExpress.XtraEditors.dll
DevExpress.Utils
Assembly Version: 2.0.4.0
Win32 Version: 2.0.4.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/DevExpress.Utils.dll
ActiproSoftware.Wizard
Assembly Version: 2.0.80.0
Win32 Version: 2.0.80.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/ActiproSoftware.Wizard.dll
RedGate.Licensing.Client
Assembly Version: 1.2.3.41
Win32 Version: 1.2.3.41
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.Licensing.Client.dll
RedGate.Licensing.Helper
Assembly Version: 1.2.3.41
Win32 Version: 1.2.3.41
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.Licensing.Helper.dll
System.Xml
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.3600.0__b77a5c561934e089/System.Xml.dll
Accessibility
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.3600.0__b03f5f7f11d50a3a/Accessibility.dll
System.Data
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.3600.0__b77a5c561934e089/System.Data.dll
System.Transactions
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.3600.0__b77a5c561934e089/System.Transactions.dll
System.EnterpriseServices
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.3600.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hello,

    Thanks for telling us. This does not happen on my computer, so I suspect it has something to do with the fact that the software is running in .net Framework 2.0. We'll look into this.
  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hello,

    I think he was missing a step. If you change the object selections, PGUP, and scroll, you can get this exception in SQL Compare as well as Data Compare.

    Now that we've reproduced it here, we can begin fixing it.
This discussion has been closed.