[Mono-bugs] [Bug 409343] New: PageSetupDialog: System. NullReferenceException in get_UseYardPound

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 15 15:56:33 EDT 2008


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


           Summary: PageSetupDialog: System.NullReferenceException in
                    get_UseYardPound
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: christoffer at curo.dk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Using Mono 1.9.1 on Ubuntu 8.0.4.

I have added this source:

deb http://directhex.mfgames.com/ hardy main

and also have installed a deb with the Microsoft.VisualBasic.dll assembly (it
is not included in the repository).

When I run mono DWSIM.exe in the file from this zip:

http://drop.io/dwsim13b

select Brazilian Portuguese, then Criar Novo Simulacao (right, top button), I
get a crash:

cs at cs-desktop:~/downloads/DWSIM_mono_cs/Release$ mono DWSIM.exe

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Windows.Forms.PageSetupDialog.get_UseYardPound () [0x00000] 
  at System.Windows.Forms.PageSetupDialog.LocalizedLengthUnit () [0x00000] 
  at System.Windows.Forms.PageSetupDialog.InitializeComponent () [0x00000] 
  at System.Windows.Forms.PageSetupDialog..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.PageSetupDialog:.ctor ()
  at DWSIM.frmSurface.InitializeComponent () [0x00000] 
  at (wrapper remoting-invoke-with-check) DWSIM.frmSurface:InitializeComponent
()
  at DWSIM.frmSurface..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) DWSIM.frmSurface:.ctor ()
  at DWSIM.FormChild..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) DWSIM.FormChild:.ctor ()
  at DWSIM.FormTips.KryptonButton5_Click (System.Object sender,
System.EventArgs e) [0x00000] 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ButtonBase.OnMouseUp
(System.Windows.Forms.MouseEventArgs mevent) [0x00000] 
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs
mevent) [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.ButtonBase.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Button.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.Form.ShowDialog (IWin32Window ownerWin32) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog
(System.Windows.Forms.IWin32Window)
  at DWSIM.FormParent.FormParent_Shown (System.Object sender, System.EventArgs
e) [0x00000] 
  at System.Windows.Forms.Form.OnShown (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:set_Visible (bool)
  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
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun ()
[0x00000] 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run
(System.String[] commandLine) [0x00000] 
  at DWSIM.My.MyApplication.Main (System.String[] Args) [0x00000] 

The source of the app is here

http://drop.io/dwsim13bsrc1

if you need it.

The same application works fine in Windows XP with Mono 1.9.1.


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