How can we help you today? How can we help you today?

.Net bug report (dump included)

I got an ugly error message when changing the settings. As always, it happened right when I finished changing everything (fortunately I could choose Continue and it kept working).

I'm not sure what triggered it, I was on the Snippets tag (after viewing each and every one of them, in order), and then I just change the active window (to Firefox, incidentally).
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at _9.GetLineText(Int32 lineIndex)
   at RedGate.SQLPrompt.CommonUI.Controls.SQLScript.ColoredLabel._1(Int32 , Int32 , Boolean )
   at RedGate.SQLPrompt.CommonUI.Controls.SQLScript.ColoredLabel.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at RedGate.SQLPrompt.CommonUI.Controls.SQLScript.ColoredLabel.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.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.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
RedGate.SQLPrompt.QueryAnalyzerUI
    Assembly Version: 3.0.0.768
    Win32 Version: 3.0.0.768
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.SQLPrompt.QueryAnalyzerUI.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
RedGate.SQLPrompt.CommonUI
    Assembly Version: 3.0.0.768
    Win32 Version: 3.0.0.768
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.SQLPrompt.CommonUI.DLL
----------------------------------------
RedGate.Licensing.Client
    Assembly Version: 1.3.0.25
    Win32 Version: 1.3.0.25
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.Licensing.Client.DLL
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
RedGate.Licensing.Helper
    Assembly Version: 1.3.0.25
    Win32 Version: 1.3.0.25
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.Licensing.Helper.DLL
----------------------------------------
RedGate.SqlPrompt.Engine
    Assembly Version: 3.0.0.768
    Win32 Version: 3.0.0.768
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.SqlPrompt.Engine.DLL
----------------------------------------
RedGate.SQL.Shared
    Assembly Version: 5.3.0.1
    Win32 Version: 5.3.0.1
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.SQL.Shared.DLL
----------------------------------------
RedGate.SqlPrompt.Engine.Gatekeeper
    Assembly Version: 3.0.0.768
    Win32 Version: 3.0.0.768
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.SqlPrompt.Engine.Gatekeeper.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
RedGate.Shared.Utils
    Assembly Version: 5.3.0.1
    Win32 Version: 5.3.0.1
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.Shared.Utils.DLL
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
RedGate.Update.Client
    Assembly Version: 1.2.0.3
    Win32 Version: 1.2.0.3
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.Update.Client.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
RedGate.SQLCompare.Engine
    Assembly Version: 5.8.0.50
    Win32 Version: 5.8.0.50
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.SQLCompare.Engine.DLL
----------------------------------------
RedGate.SQLCompare.ASTParser
    Assembly Version: 5.8.0.50
    Win32 Version: 5.8.0.50
    CodeBase: file:///C:/Archivos%20de%20programa/Red%20Gate/SQL%20Prompt%203%20Beta/RedGate.SQLCompare.ASTParser.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.
void
0

Comments

2 comments

  • Turambar
    I got the same error. It can be easily reproduced:

    - Go to the snippet editor
    - Do not select any snippet
    - Click inside the textbox below "code for selected snippet:"
    Turambar
    0
  • Tilman
    Hi,

    Thanks for reporting this. We have already fixed it for the final release.

    Regards,

    Tilman
    Tilman
    0

Add comment

Please sign in to leave a comment.