[Mono-bugs] [Bug 601803] New: System.ArgumentException from System.Drawing.Icon.InitFromStreamWithSize

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 2 22:21:48 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=601803

http://bugzilla.novell.com/show_bug.cgi?id=601803#c0


           Summary: System.ArgumentException from
                    System.Drawing.Icon.InitFromStreamWithSize
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lextudio at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.28 Safari/533.4

I am porting a WinForms application from .NET/Windows to Mono/openSUSE. Images
are stored in resx files.

It runs fine on .NET/Windows and Mono/Windows, but ArgumentException is raised
on Mono/openSUSE.

Reproducible: Always

Steps to Reproduce:
1. Check out change set 43746 of #SNMP from
http://sharpsnmplib.codeplex.com/SourceControl/list/changesets
2. On Mono/openSUSE open SharpSnmpLib.md.sln in MonoDevelop.
3. Go to Browser project's MainForm.cs and comment out line 28 (if
(!Helper.IsRunningOnMono())).
4. Use xbuild to build SharpSnmpLib.md.sln outside of MD.
5. Back to MD, and Run Browser project.
Actual Results:  
An ArgumentException is raised and the application fails to launch.

Expected Results:  
It should runs fine.

I tried to reproduce this issue with a smaller project, but failed. Therefore,
thanks for checking this huge application in advance.

It is possible to work around the exception but excluding the images from the
application, but obviously it makes the application look bad.

-- 
Configure bugmail: http://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