> Hi, > > i'm using Mono to bring up sample form using Mono on settobbox (broadcom > chipset) . We could able to compile the sample code and also all the Mono > dependent libraries including libgdiplus, cairo, X11, Pixman etc using > cross toolchain provided by Broadcom. After cross compiling all the > required libraries, when we tried to bring up the sample form, we are > getting an exception related to display not being set. I've exported the > DISPLAY=0.0 and even then i'm getting the error. Any inputs to display > this windows form on to the TV will be a great help. Do we need to > integrate any Broadcom driver to libgdiplus.so so that it can render on TV? > > On Ubuntu LINUX, i'm able to bring up this windows form without any > issues. > > Below is few excerpt log of the exception. > > # echo $DISPLAY > > > 0.0 >
> Unhandled Exception: > >> System.TypeInitializationException: An exception was thrown by the type >> initializer for System.Windows.Forms.WindowsFormsSynchronizationContext >> ---> System.TypeInitializationException: An exception was thrown by the >> type initializer for System.Windows.Forms.XplatUI ---> >> System.ArgumentNullException: Could not open display (X-Server required. >> Check you DISPLAY environment variable) >> Parameter name: Display >> at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) >> [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename >> unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] >> in <filename unknown>:0 >> at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined >> () [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at (wrapper remoting-invoke-with-check) >> System.Windows.Forms.Control:.ctor () >> at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () >> [0x00000] in <filename unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.ContainerControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 >> at HelloWorld..ctor () [0x00000] in <filename unknown>:0 >> at (wrapper remoting-invoke-with-check) HelloWorld:.ctor () >> at HelloWorld.Main () [0x00000] in <filename unknown>:0 >> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An >> exception was thrown by the type initializer for >> System.Windows.Forms.WindowsFormsSynchronizationContext ---> >> System.TypeInitializationException: An exception was thrown by the type >> initializer for System.Windows.Forms.XplatUI ---> >> System.ArgumentNullException: Could not open display (X-Server required. >> Check you DISPLAY environment variable) >> Parameter name: Display >> at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) >> [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename >> unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] >> in <filename unknown>:0 >> at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined >> () [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at (wrapper remoting-invoke-with-check) >> System.Windows.Forms.Control:.ctor () >> at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () >> [0x00000] in <filename unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.ContainerControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 >> at HelloWorld..ctor () [0x00000] in <filename unknown>:0 >> at (wrapper remoting-invoke-with-check) HelloWorld:.ctor () >> at HelloWorld.Main () [0x00000] in <filename unknown>:0 >> # >> >
_______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list