[Mono-winforms-list] NullReferenceException calling SWF.Control.set_AccessibleRole

Nick Thorpe nt at zrho.com
Thu Aug 24 18:49:18 EDT 2006


Hi all,

I'm trying to get a 3rd party GUI library (Infragistics NetAdvantage)
working with Mono 1.1.16.1. When I run our application it dies almost
instantly with this exception:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at System.Windows.Forms.Control.set_AccessibleRole (AccessibleRole value)
[0x00000]
  at
Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.InitControlStyles ()
[0x00000]
  at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea..ctor ()
[0x00000]
  at (wrapper remoting-invoke-with-check)
Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea:.ctor ()
  at PSOMA.Form1.InitializeComponent () [0x00000]
  at PSOMA.Form1..ctor () [0x00000]
  at (wrapper remoting-invoke-with-check) PSOMA.Form1:.ctor ()
  at PSOMA.Form1.Main () [0x00000]

I checked the CIL to see if the library was using something outside of .NET,
but it looks pretty standard and is seems to be failing at this call:

  IL_0098:  call       instance void
[System.Windows.Forms]System.Windows.Forms.Control::set_AccessibleRole(valuetype
[System.Windows.Forms]System.Windows.Forms.AccessibleRole)

I don't know enough about SWF to say whether this is a bug, or if these
libraries are doing something unsupported. If anyone has any input on the
problem I'd appreciate it.

Thanks,
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20060824/2b18ca35/attachment.html 


More information about the Mono-winforms-list mailing list