SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Find and replace with empty string results in exception

Last post 08-06-2008 8:19 PM by weelink. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-06-2008 8:19 PM

    Find and replace with empty string results in exception

    Open a file

    Select search and replace

    Find what: anything

    Replace with: <empty string>


     

    SharpDevelop Version : 3.0.0.2970
    .NET Version         : 2.0.50727.1433
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : Dutch (Netherlands) (nl-NL)
    Current UI language  : en
    Working Set Memory   : 138732kb
    GC Heap Memory       : 37311kb

    Exception thrown:
    System.ArgumentOutOfRangeException: offset should be between 0 and 1213
    Parameter name: offset
    Actual value was -1.
       at ICSharpCode.TextEditor.Document.LineSegmentTree.GetNodeByOffset(Int32 offset)
       at ICSharpCode.TextEditor.Document.DefaultDocument.OffsetToPosition(Int32 offset)
       at SearchAndReplace.ProvidedDocumentInformation.set_CurrentOffset(Int32 value)
       at SearchAndReplace.ProvidedDocumentInformation.Replace(Int32 offset, Int32 length, String pattern)
       at SearchAndReplace.Search.Replace(Int32 offset, Int32 length, String pattern)
       at SearchAndReplace.SearchReplaceManager.ReplaceAll(IProgressMonitor monitor)
       at SearchAndReplace.SearchAndReplacePanel.ReplaceAllButtonClicked(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.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)

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.