[Mono-bugs] [Bug 325865] New: Unhandled Exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 17 19:11:09 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=325865

           Summary: Unhandled Exception
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: surfzoid2002 at yahoo.fr
         QAContact: mono-bugs at ximian.com
          Found By: ---


yesterday i updated my mono version with the daily test tarball every things
seem to be Ok, tonight i upgraded another time as it :

[eric at surfzoidPC ~]$ mono -V
Mono JIT compiler version 20070917 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
[eric at surfzoidPC ~]$


But now when i click on my "disconnect" item and so execute this code :

                public void Disconnect()

                {



            try

            {

                int Transport =
Convert.ToInt16(ConfigReaderWriter.GetXmlValue("TypeCom"));

                Console.WriteLine(Transport);

                if (Transport == 3)

                {

                    if (this.serialPort1.IsOpen == true)

                    {

                        SendStrByte(ObexFunc.Disconect(), false);



                        //SendStrByte("ATQ0E0V1");

                        SendStrByte(new byte[] {0x41, 0x54, 0x51, 0x30, 0x45,
0x30, 0x56,

                                0x31, 0x0D }, false);



                        //SendStrByte("AT&C1&D2");

                        SendStrByte(new byte[] {0x41, 0x54, 0x26, 0x43, 0x31,
0x26, 0x44,

                                0x32, 0x0D }, false);



                        //SendStrByte("AT"); ;

                        SendStrByte(new byte[] { 0x41, 0x54, 0x0D }, false);



                        //SendStrByte("ATS0=0");

                        SendStrByte(new byte[] { 0x41, 0x54, 0x53, 0x30, 0x3D,
0x30, 0x0D }, false);



                        this.serialPort1.Close();

                        //return;

                    }

                }



                // Close the connection

                ret = cli.disconnect();

                Console.WriteLine("Disconnet returned " + ret);

                cli.Dispose();

                this.TxtAdress.Text = "/";

                AdresFold = "/";

                this.listView1.Clear();

                this.treeView1.Nodes.Clear();

                this.TxtDebug.Text += "Disconnet returned " + ret +
Environment.NewLine;

                return;



            }

            catch (Exception Ex)

            {

                Console.WriteLine(Ex.Message);

            }   

                }

I have a Unhandled Exception: :


Unhandled Exception: System.InvalidProgramException: Invalid IL code in
CsObexFtp.MainForm:Disconnect (): IL_0135: stelem.ref


  at CsObexFtp.MainForm.ToolStripMenuItemdisconectClick (System.Object sender,
System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x0001c]
in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs:961 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e)
[0x00077] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripMenuItem.cs:255 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.EventArgs e)
[0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripMenuItem.cs:479 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e,
ToolStripItemEventType met) [0x0004e] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs:1714 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ToolStripItem:FireEvent
(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp
(System.Windows.Forms.MouseEventArgs mea) [0x0001c] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs:951 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp
(System.Windows.Forms.MouseEventArgs mea) [0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:616 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m)
[0x0005c] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5231 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x0017c] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4989 
  at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:717 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m)
[0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs:1203 
  at System.Windows.Forms.ToolStripDropDown.WndProc
(System.Windows.Forms.Message& m) [0x0001c] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:700 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:225 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:206 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x0006a] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:188 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3254 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:551 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x002e7] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:807 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] in
/root/tmp/mono-20070917/mono-20070917/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:610 
  at CsObexFtp.MainForm.Main (System.String[] args) [0x00000] 

I'm not sure but my last mono bug report is about toolstrip problem, so is, all
the new code for resolved bug have correctly try{}catch .... ?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list