[Mono-winforms-list] Porting Windows App

Gideon de Swardt gdeswardt1978 at yahoo.co.uk
Tue Oct 3 05:19:46 EDT 2006


Hi All

I have been keeping a keen eye on the mono implementation of Windows Forms project for quite some time now. After every release I would go test some small apps that was originally developed for windows. I have always had trouble with this one specific test app. I have mono 1.1.17.1 installed.

I compiled the source code on my Linux box successfully, but receive the following error during execution:

Mono System.Windows.Forms Assembly [$auto_build_revision$]
Gtk colorscheme read

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.MimeIconEngine.GetIconIndexForMimeType (System.String mime_type) [0x00000] 
  at System.Windows.Forms.UnixFileSystem..ctor () [0x00000] 
  at System.Windows.Forms.MWFVFS..ctor () [0x00000] 
  at System.Windows.Forms.FolderBrowserDialog+FolderBrowserTreeView..ctor (System.Windows.Forms.FolderBrowserDialog parent_dialog) [0x00000] 
  at (wrapper remoting-invoke-with-check) FolderBrowserTreeView:.ctor (System.Windows.Forms.FolderBrowserDialog)
  at System.Windows.Forms.FolderBrowserDialog..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.FolderBrowserDialog:.ctor ()
  at dev.Cleanup.Cleanup.InitializeComponent () [0x00000] 
  at dev.Cleanup.Cleanup..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) dev.Cleanup.Cleanup:.ctor ()
  at dev.Cleanup.Cleanup.Main () [0x00000] 

Please see attached the source file for this little program "Cleanup.cs"

Here is the command line for compiling the source code.


$ gmcs -target:winexe -out:Cleanup.exe -r:System.Windows.Forms -r:System.Drawing -r:System.Data Cleanup.cs


I dont know if this is something specific in the code that is causing this problem, or whether is an actual bug.

Regards

Gideon de Swardt

http://sonskyn-techno.blogspot.com





	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061003/e07b1ef5/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cleanup.cs
Type: text/x-csharp
Size: 10211 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061003/e07b1ef5/attachment-0001.bin 


More information about the Mono-winforms-list mailing list