[Mono-osx] problem running .app

ilango ilango at srishtisoft.com
Thu Nov 10 02:24:05 EST 2005

I'm new to this list.

I've developed an application using MS C# .NET 2003 which will connect 
to MS SQL SERVER after the user logins.

I want to run my application in Mac OS X 10.4 installed with X11, mono, freetype-2.1.10.pre-20050511, fontconfig-2.3.92

I have created an MAX.app file from my MAX.exe using "macpack". actually 
my exe needs config file to connect to database. but till now there is 
no error related to database. I have created .app file without using the 
config file.

when i type something in my user name field (text box)  i'm getting the 
following error in my console.app & application mono quit unexpectedly....

Can anybody help. Thanks in advance.

- C.Ilango

System.Windows.Forms Assembly [Revision: 49925; built: 2005/9/11 14:27:24]

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 <0x0012c> System.Windows.Forms.Document:RecalculateDocument 
(System.Drawing.Graphics g, Int32 start, Int32 end, Boolean optimize)
in <0x0009c> System.Windows.Forms.Document:UpdateView 
(System.Windows.Forms.Line line, Int32 pos)
in <0x000cc> System.Windows.Forms.Document:InsertCharAtCaret (Char ch, 
Boolean move_caret)
in <0x0026c> System.Windows.Forms.TextBoxBase:WndProc 
(System.Windows.Forms.Message m)
in <0x0001c> System.Windows.Forms.TextBox:WndProc 
(System.Windows.Forms.Message m)
in <0x00034> System.Windows.Forms.Control+ControlNativeWindow:WndProc 
(System.Windows.Forms.Message m)
in <0x001bc> System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg 
msg, IntPtr wParam, IntPtr lParam)
in <0x00028> System.Windows.Forms.XplatUIOSX:DispatchMessage 
(System.Windows.Forms.MSG msg)
in <0x00034> System.Windows.Forms.XplatUI:DispatchMessage 
(System.Windows.Forms.MSG msg)
in <0x00300> System.Windows.Forms.Application:Run ()
in <0x000f4> System.Windows.Forms.Application:Run 
(System.Windows.Forms.ApplicationContext context)
in <0x00040> System.Windows.Forms.Application:Run 
(System.Windows.Forms.Form mainForm)
in <0x00034> MAX.frmLoginPage:Main ()
Nov 10 11:16:55 kumuds-ibook crashdump[23986]: mono crashed
Nov 10 11:16:56 kumuds-ibook crashdump[23986]: crash report written to: 

More information about the Mono-osx mailing list