[Mono-bugs] [Bug 439875] New: Event Handler is not working.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 29 10:37:12 EDT 2008


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


           Summary: Event Handler is not working.
           Product: Mono: Runtime
           Version: 1.9
          Platform: Other
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ole at monochrom.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other


I have an control that fires an event when an context menu item is Clicked. 

If I run the Application with mono, this exception happens: 

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. --->
System.Runtime.Serialization.SerializationException: No element named
subitems_count could be found.
  at System.Runtime.Serialization.SerializationInfo.GetValue (System.String
name, System.Type type) [0x00000] 
  at System.Runtime.Serialization.SerializationInfo.GetInt32 (System.String
name) [0x00000] 
  at System.Windows.Forms.ListViewItem.Deserialize
(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
[0x00000] 
  at System.Windows.Forms.ListViewItem..ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
[0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[])
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] --- End of inner exception
stack trace ---

  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] 
  at System.Runtime.Serialization.ObjectRecord.LoadData
(System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingContext context) [0x00000] 
  at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000] 
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x00000] 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result,
System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000] 
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000] 
  at System.Resources.ResourceReader.ReadNonPredefinedValue (System.Type
exp_type) [0x00000] 
  at System.Resources.ResourceReader.ReadValueVer2 (Int32 type_index) [0x00000] 
  at System.Resources.ResourceReader.ResourceValue (Int32 index) [0x00000] 
  at System.Resources.ResourceReader+ResourceEnumerator.get_Value () [0x00000] 
  at System.Resources.ResourceSet.ReadResources () [0x00000] 
  at System.Resources.ResourceSet.GetEnumerator () [0x00000] 
  at System.ComponentModel.ComponentResourceManager.BuildResources
(System.Globalization.CultureInfo culture, System.Collections.Hashtable
resources) [0x00000] 
  at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName,
System.Globalization.CultureInfo culture) [0x00000] 
  at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName) [0x00000] 
  at Alias.Forms.AddToRuntable.AddToRuntable.InitializeComponent () [0x00000] 
  at Alias.Forms.AddToRuntable.AddToRuntable..ctor
(System.Collections.Generic.List`1 Selected, Autosampler.Runtable rt, Int32
trayheight, System.String position) [0x00000] 
  at (wrapper remoting-invoke-with-check)
Alias.Forms.AddToRuntable.AddToRuntable:.ctor
(System.Collections.Generic.List`1,Autosampler.Runtable,int,string)
  at Alias.Controls.RuntableCreator.RuntableCreator.OnAddSelection
(System.Collections.Generic.List`1 Selection, Autosampler.Runtable rt,
System.String position) [0x00000] 
  at Alias.Controls.TrayGrid.TrayGrid.addToRuntableToolStripMenuItem_Click
(System.Object sender, System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e)
[0x00000] 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.EventArgs e)
[0x00000] 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e,
ToolStripItemEventType met) [0x00000] 
  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) [0x00000] 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp
(System.Windows.Forms.MouseEventArgs mea) [0x00000] 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.ToolStripDropDown.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] 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] 
  at Alias.Program.Main (System.String[] args) [0x00000] 

the application works well with Windows .NET 2.0


-- 
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