[Mono-osx] Runtime error with Mono 1.1.9

Aaron Flynt aaron at aaronflynt.com
Mon Sep 12 10:01:56 EDT 2005


FWIW, I get the exact same error running this code w/1.1.9 on Tiger.

-=Aaron=-

On Sep 12, 2005, at 5:39 AM, Gareth Baker wrote:

> I am getting a runtime error when running some macpacked SWF/mono  
> 1.1.9
> programmes. Simpler programmes seem ok (opening window and drawing  
> to simple
> canvas), but adding textbaxes or menues causes the failure.
>
> The error is the same from a native OSX (10.4) macpacked programme  
> and the
> same programme compiled and run under X11.
>
> The console output:
>
> ===== Sunday, September 11, 2005 10:16:53 PM Europe/London =====
> Mono System.Windows.Forms Assembly [Revision: 44786; built: 2005/5/25
> 22:34:45]
> mono[285]: Welcome to the WSX:Carbon
>
> Unhandled Exception: System.NullReferenceException: Object  
> reference not set
> to an instance of an object
> in <0x00000> <unknown method>
> in (wrapper managed-to-native)
> System.Windows.Forms.XplatUIOSX:GetFontMetrics  
> (intptr,intptr,int&,int&)
> in <0x00060> System.Windows.Forms.XplatUIOSX:GetFontMetrics
> (System.Drawing.Graphics g, System.Drawing.Font font, System.Int32  
> ascent,
> System.Int32 descent)
> in <0x00058> System.Windows.Forms.XplatUI:GetFontMetrics
> (System.Drawing.Graphics g, System.Drawing.Font font, System.Int32  
> ascent,
> System.Int32 descent)
> in <0x00434> System.Windows.Forms.Line:RecalculateLine
> (System.Drawing.Graphics g, System.Windows.Forms.Document doc)
> in <0x000fc> System.Windows.Forms.Document:RecalculateDocument
> (System.Drawing.Graphics g, Int32 start, Int32 end, Boolean optimize)
> in <0x0002c> System.Windows.Forms.Document:RecalculateDocument
> (System.Drawing.Graphics g)
> in <0x00038> System.Windows.Forms.TextBoxBase:CalculateDocument ()
> in <0x00388> System.Windows.Forms.TextBoxBase:set_Text  
> (System.String value)
> in <0x0001c> System.Windows.Forms.TextBox:set_Text (System.String  
> value)
> in <0x0033c> MyFormProject.MainForm:InitializeComponent ()
> in <0x0001c> MyFormProject.MainForm:.ctor ()
> in (wrapper remoting-invoke-with-check)  
> MyFormProject.MainForm:.ctor ()
> in <0x00030> MyFormProject.MainForm:Main (System.String[] args)
> Sep 11 22:17:04 Gareth-Bakers-Computer crashdump[286]: mono crashed
> Sep 11 22:17:05 Gareth-Bakers-Computer crashdump[286]: crash report  
> written
> to: /Users/garethba/Library/Logs/CrashReporter/mono.crash.log
>
> The programme and the makefile are attached.
>
> Any help would be appreciated.
> Regards
> Gareth Baker
>
>
>
> <Converter.cs>
> <Makefile>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>



More information about the Mono-osx mailing list