Issues in Undoing textbox values

View: New views
3 Messages — Rating Filter:   Alert me  

Issues in Undoing textbox values

by Jijesh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

H! Friends..

I have created a winforms dataentry application for windows. But later we moved to ubuntu. I installed the same application using Mono in ubuntu. But the application is getting crashed on repeatedly undoing(pressing ctrl+z ) the values in text boxes at times. Am getting the error as follows.

System.ArgumentOutOfRangeException: Argument is out of range.
  at System.Text.StringBuilder.ToString (Int32 startIndex, Int32 length) [0x00000]
  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line, System.Windows.Forms.LineTag tag, Int32 pos) [0x00000]
  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line, Int32 pos) [0x00000]
  at System.Windows.Forms.UndoManager.Insert (System.Windows.Forms.Line line, Int32 pos, System.Windows.Forms.Line insert, Boolean select) [0x00000]
  at System.Windows.Forms.UndoManager.Undo () [0x00000]
  at System.Windows.Forms.TextBoxBase.Undo () [0x00000]
  at System.Windows.Forms.TextBoxBase.ProcessKey (Keys keyData) [0x00000]
  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]


My environment details:

OS:ubuntu 9.04
mono version: Mono 2.4+dfsg-4~dhx1~jaunty1

Thanks,

Jijesh VR

Re: Issues in Undoing textbox values

by Ivan Zlatev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Please, make a small compilable test case that reproduces the issue
and file a bug report - http://mono-project.com/Bugs

Kind Regards,

Ivan Zlatev
http://ivanzlatev.com



On Wed, Aug 12, 2009 at 3:11 PM, Jijesh<incubator125@...> wrote:

>
> H! Friends..
>
> I have created a winforms dataentry application for windows. But later we
> moved to ubuntu. I installed the same application using Mono in ubuntu. But
> the application is getting crashed on repeatedly undoing(pressing ctrl+z )
> the values in text boxes at times. Am getting the error as follows.
>
> System.ArgumentOutOfRangeException: Argument is out of range.
>  at System.Text.StringBuilder.ToString (Int32 startIndex, Int32 length)
> [0x00000]
>  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line,
> System.Windows.Forms.LineTag tag, Int32 pos) [0x00000]
>  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line,
> Int32 pos) [0x00000]
>  at System.Windows.Forms.UndoManager.Insert (System.Windows.Forms.Line
> line, Int32 pos, System.Windows.Forms.Line insert, Boolean select) [0x00000]
>  at System.Windows.Forms.UndoManager.Undo () [0x00000]
>  at System.Windows.Forms.TextBoxBase.Undo () [0x00000]
>  at System.Windows.Forms.TextBoxBase.ProcessKey (Keys keyData) [0x00000]
>  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message&
> m) [0x00000]
>  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m)
> [0x00000]
>  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
> (System.Windows.Forms.Message& m) [0x00000]
>  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
> (System.Windows.Forms.Message& m) [0x00000]
>  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
> wParam, IntPtr lParam) [0x00000]
>
>
> My environment details:
>
> OS:ubuntu 9.04
> mono version: Mono 2.4+dfsg-4~dhx1~jaunty1
>
> Thanks,
>
> Jijesh VR
>
> --
> View this message in context: http://www.nabble.com/Issues-in-Undoing-textbox-values-tp24937419p24937419.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@...
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@...
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Re: Issues in Undoing textbox values

by Jijesh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have posted a bug report in bugzilla.
Here are the steps to replicate the issue.

Test Application: create a c# winforms application containing two text boxes in which, one is "multiline=true" and in other "multiline=false".

Steps to Replicate:
-------------------

Case 1 (TextBox with multiline=false):

1. Paste some data(i tried the above test data) in the first text box.
2. select last few words in the text box.
3. click backspace or delete button to delete data.
4. again click backspace
5. press ctrl+z then it will throw error and application will also get closed


Case 2 (TextBox with multiline=true):

Follow the same steps as in Case 1.

The error i got is:

Case 1:

System.ArgumentOutOfRangeException: Argument is out of range.

Case 2:

System.NullReferenceException: Object reference not set to an instance of an object


My environment details:

OS:ubuntu 9.04
mono version: Mono 2.4+dfsg-4~dhx1~jaunty1

Thanks in advance,
Jijesh V R


Ivan Zlatev wrote:
Hi,

Please, make a small compilable test case that reproduces the issue
and file a bug report - http://mono-project.com/Bugs
Kind Regards,

Ivan Zlatev
http://ivanzlatev.com



On Wed, Aug 12, 2009 at 3:11 PM, Jijesh<incubator125@hotmail.com> wrote:
>
> H! Friends..
>
> I have created a winforms dataentry application for windows. But later we
> moved to ubuntu. I installed the same application using Mono in ubuntu. But
> the application is getting crashed on repeatedly undoing(pressing ctrl+z )
> the values in text boxes at times. Am getting the error as follows.
>
> System.ArgumentOutOfRangeException: Argument is out of range.
>  at System.Text.StringBuilder.ToString (Int32 startIndex, Int32 length)
> [0x00000]
>  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line,
> System.Windows.Forms.LineTag tag, Int32 pos) [0x00000]
>  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line,
> Int32 pos) [0x00000]
>  at System.Windows.Forms.UndoManager.Insert (System.Windows.Forms.Line
> line, Int32 pos, System.Windows.Forms.Line insert, Boolean select) [0x00000]
>  at System.Windows.Forms.UndoManager.Undo () [0x00000]
>  at System.Windows.Forms.TextBoxBase.Undo () [0x00000]
>  at System.Windows.Forms.TextBoxBase.ProcessKey (Keys keyData) [0x00000]
>  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message&
> m) [0x00000]
>  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m)
> [0x00000]
>  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
> (System.Windows.Forms.Message& m) [0x00000]
>  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
> (System.Windows.Forms.Message& m) [0x00000]
>  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
> wParam, IntPtr lParam) [0x00000]
>
>
> My environment details:
>
> OS:ubuntu 9.04
> mono version: Mono 2.4+dfsg-4~dhx1~jaunty1
>
> Thanks,
>
> Jijesh VR
>
> --
> View this message in context: http://www.nabble.com/Issues-in-Undoing-textbox-values-tp24937419p24937419.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list