[Mono-bugs] [Bug 61353][Blo] New - VM can't locate MONO DLLS.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 9 Jul 2004 13:18:15 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by hamby@bmh.com.

http://bugzilla.ximian.com/show_bug.cgi?id=61353

--- shadow/61353	2004-07-09 13:18:15.000000000 -0400
+++ shadow/61353.tmp.25515	2004-07-09 13:18:15.000000000 -0400
@@ -0,0 +1,157 @@
+Bug#: 61353
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: fedora core 2 2.6.6 kernel
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: hamby@bmh.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: VM can't locate MONO DLLS.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Simple mono applications requiring libraries compile but don't run. A small
+instrument simulation requires the following packages
+
+using System;
+
+using System.Drawing;
+
+using System.Collections;
+
+using System.ComponentModel;
+
+using System.Windows.Forms;
+
+using System.Data;
+
+using System.Net;
+
+using System.Net.Sockets;
+
+using System.Threading;
+
+I am unsure if this is a pure .Net application. It may not be. The FAQ
+states that System.Windows.Forms is not yet ready. It is unclear what
+release the FAQ applies to. I don't know how to evaluate the above code
+against the release notes scope statements.
+
+It compiles in MonoDevelop without errors indicating that the imported
+packages are available to the compiler. When I try to run the program, the
+following happens.
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in (unmanaged) (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipDrawString
+(intptr,string,int,intptr,System.Drawing.RectangleF&,intptr,intptr)
+in <0x00004> (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipDrawString
+(intptr,string,int,intptr,System.Drawing.RectangleF&,intptr,intptr)
+in [0x00022] (at
+/cvs/mcs/class/System.Drawing/System.Drawing/Graphics.cs:810)
+System.Drawing.Graphics:DrawString
+(string,System.Drawing.Font,System.Drawing.Brush,System.Drawing.RectangleF,System.Drawing.StringFormat)
+in <0x00108> (wrapper remoting-invoke-with-check)
+System.Drawing.Graphics:DrawString
+(string,System.Drawing.Font,System.Drawing.Brush,System.Drawing.RectangleF,System.Drawing.StringFormat)
+in [0x0015a] (at
+/cvs/mcs/class/System.Windows.Forms/System.Windows.Forms/CheckBox.cs:509)
+System.Windows.Forms.CheckBox:CheckboxRedraw ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+System.Windows.Forms.CheckBox:CheckboxRedraw ()
+in [0x00765] (at
+/cvs/mcs/class/System.Windows.Forms/System.Windows.Forms/CheckBox.cs:462)
+System.Windows.Forms.CheckBox:UpdateCheckbox ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+System.Windows.Forms.CheckBox:UpdateCheckbox ()
+
+in [0x00001] (at
+/cvs/mcs/class/System.Windows.Forms/System.Windows.Forms/CheckBox.cs:519)
+System.Windows.Forms.CheckBox:CheckboxUpdate (object,System.EventArgs)
+in <0x00069> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+in [0x00019] (at
+/cvs/mcs/class/System.Windows.Forms/System.Windows.Forms/Control.cs:2079)
+System.Windows.Forms.Control:OnTextChanged (System.EventArgs)
+in [0x00002] (at
+/cvs/mcs/class/System.Windows.Forms/System.Windows.Forms/ButtonBase.cs:269)
+System.Windows.Forms.ButtonBase:OnTextChanged (System.EventArgs)
+in [0x00085] (at
+/cvs/mcs/class/System.Windows.Forms/System.Windows.Forms/Control.cs:1148)
+System.Windows.Forms.Control:set_Text (string)
+in [0x00237] (at
+/home/projects/dhamby/AugCog/Design/OTISServer/OTISServer.cs:137)
+otis_test_server.OTISTestServer:InitializeComponent ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+otis_test_server.OTISTestServer:InitializeComponent ()
+in [0x00019] (at
+/home/projects/dhamby/AugCog/Design/OTISServer/OTISServer.cs:40)
+otis_test_server.OTISTestServer:.ctor ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+otis_test_server.OTISTestServer:.ctor ()
+in [0x00000] (at
+/home/projects/dhamby/AugCog/Design/OTISServer/OTISServer.cs:248)
+otis_test_server.OTISTestServer:Main ()
+
+
+press any key to continue...
+
+My friend locate tells me that I have several copies of the libraries
+available. For example 
+
+[hamby@dhamby hamby]$ locate System.Drawing.dll
+/usr/lib/mono/1.0/System.Drawing.dll
+/usr/lib/mono/gac/System.Drawing/2.0.3600.0__b03f5f7f11d50a3a/System.Drawing.dll
+/usr/lib/mono/gac/System.Drawing/1.0.5000.0__b03f5f7f11d50a3a/System.Drawing.dll
+/usr/lib/mono/2.0/System.Drawing.dll
+
+I last installed Mono from the Release 1.0 mono-all.zip for Fedora Core 2.
+
+Steps to reproduce the problem:
+1. Install Mono 1.0 for Fedora Core 2 on Fedora Core 2
+2. Compile sample program
+3. Run sample program
+
+Resuidual beta versions of Mono are present.
+
+Actual Results:
+
+Program throws unhandled exceptions 
+
+Expected Results:
+
+Program runs. Wonderful things happen. Client connects and receives sample
+data. Just like on Windows.
+
+This system will build the MonoDevelop c# Console hello application. It
+even does all the typing for me. 
+
+Is this an installation glitch or am I ahead of the curve with this little
+example written by others for Visual Studio .Net?
+How often does this happen? 
+
+
+Additional Information:
+
+I'll try this program with Mono on Windows some day. It is well behaved
+using SharpDevelop, the give-away Microsoft C# compiler and redistributable
+runtime. I took one look at the Visual Studio 2005 Beta license, clicked
+"cancel", then "move to trash".
+
+Could you recommend how to clean up the older versions? I'd like to pull
+off all of mono and reinstall the Release 1 kit.
+
+Thanks for a valiant effort and your usual thoughtful support.
+
+Dave Hamby