Bug 184082

Summary: System.Windows.Forms broken
Product: [Fedora] Fedora Reporter: Paul F. Johnson <paul>
Component: monoAssignee: Alexander Larsson <alexl>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-18 23:04:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test case for demonstratng the problem none

Description Paul F. Johnson 2006-03-06 00:34:14 UTC
Created attachment 125691 [details]
test case for demonstratng the problem

Comment 1 Paul F. Johnson 2006-03-06 00:34:14 UTC
Description of problem:
SWF code will compile, but fails to run giving throwback

Version-Release number of selected component (if applicable):
mono-1.1.13.4-1
mono-winforms-1.1.13.4-1

How reproducible:
Always

Steps to Reproduce:
1. Using the attached code, compile with mcs list1.cs -r:System.Windows.Forms
-r:System.Drawing
2. mono list1.exe
3.
  
Actual results:
Mono gives the following throwback

Unhandled Exception: System.EntryPointNotFoundException: GdipGetFontHeightGivenDPI
in (wrapper managed-to-native) System.Drawing.GDIPlus:GdipGetFontHeightGivenDPI
(intptr,single,single&)
in <0x0003c> System.Drawing.Font:GetHeight (Single dpi)
in <0x00038> System.Drawing.Font:GetHeight ()
in <0x00012> System.Drawing.Font:get_Height ()
in (wrapper remoting-invoke-with-check) System.Drawing.Font:get_Height ()
in <0x000e2> System.Windows.Forms.Form:GetAutoScaleSize (System.Drawing.Graphics
g, System.Drawing.Font font)
in <0x00056> System.Windows.Forms.Form:.ctor ()
in <0x0001b> testwindow:.ctor ()
in (wrapper remoting-invoke-with-check) testwindow:.ctor ()
in <0x00028> testwindow:Main ()

Expected results:
The file should run and produce a simple window

Additional info:

Comment 2 Paul F. Johnson 2006-03-06 09:45:12 UTC
Code seems fine on an x86 box, so have changed the problem platform to x86_64

Comment 3 Alexander Larsson 2006-03-06 10:33:19 UTC
Is libgdiplus for the right architecture (i.e. same as the mono package) installed?

Comment 4 Paul F. Johnson 2006-03-06 11:00:19 UTC
rpm -qa --queryformat "%-30{NAME}%{ARCH}\n" libgdiplus

libgdiplusx86_64

Yep, it's the same. mono-core and mono-winforms are also reporting x86_64



Comment 5 Alexander Larsson 2006-03-07 10:32:55 UTC
I wonder if mono is not looking for it in /usr/lib64 for some reason. Can you
try copying /usr/lib64/libgdiplus.so* to /usr/lib and see if that works?


Comment 6 Paul F. Johnson 2006-03-07 18:46:15 UTC
That's got it