mail-archives/mono-osx/2010-November/003361.html

149 строки
5.8 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:05:17 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] System.Drawing problems with Mono 2.8.1
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20System.Drawing%20problems%20with%20Mono%202.8.1&In-Reply-To=1290198611438-3050944.post%40n4.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003355.html">
<LINK REL="Next" HREF="003362.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] System.Drawing problems with Mono 2.8.1</H1>
<B>Stifu</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20System.Drawing%20problems%20with%20Mono%202.8.1&In-Reply-To=1290198611438-3050944.post%40n4.nabble.com"
TITLE="[Mono-osx] System.Drawing problems with Mono 2.8.1">stifu at free.fr
</A><BR>
<I>Sat Nov 20 06:15:36 EST 2010</I>
<P><UL>
<LI>Previous message: <A HREF="003355.html">[Mono-osx] System.Drawing problems with Mono 2.8.1
</A></li>
<LI>Next message: <A HREF="003362.html">[Mono-osx] System.Drawing problems with Mono 2.8.1
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3361">[ date ]</a>
<a href="thread.html#3361">[ thread ]</a>
<a href="subject.html#3361">[ subject ]</a>
<a href="author.html#3361">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
This is a regression.
See:
<A HREF="http://mono.1490590.n4.nabble.com/windows-form-regression-with-mono-2-8-1-tc3048328.html">http://mono.1490590.n4.nabble.com/windows-form-regression-with-mono-2-8-1-tc3048328.html</A>
Geoff Norton replied to this, but for some reason his message doesn't appear
on the forum / nabble side of the mailing list at the moment, so I'm going
to repost what he said:
&quot;It seems I introduced a regression, my apologies.
I've commited a fix in 14f0ab6 and uploaded a hotfix to:
<A HREF="http://sublimeintervention.com/mwf-hotfix.zip">http://sublimeintervention.com/mwf-hotfix.zip</A>
Download that file and unzip its contents to:
/Library/Frameworks/Mono.framework/Versions/Current/lib/mono
and it should resolve the issue.
Please let me know if there are any further problems.
-g&quot;
ChristianManthey wrote:
&gt;<i>
</I>&gt;<i> Hi,
</I>&gt;<i>
</I>&gt;<i> i tried to run my application today with the current 2.8.1 framework on a
</I>&gt;<i> G5 and encountered some strange errors in the Systems.Drawing.Bitmap
</I>&gt;<i> class. After some tests i decided to upgrade my own MacBook from 2.6.7 to
</I>&gt;<i> the new version and ran into the same error.
</I>&gt;<i>
</I>&gt;<i> Object reference not set to an instance of an object
</I>&gt;<i> at System.Drawing.Graphics.Dispose () [0x00000] in &lt;filename unknown&gt;:0
</I>&gt;<i> at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:Dispose
</I>&gt;<i> ()
</I>&gt;<i> at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Int32
</I>&gt;<i> width, Int32 height) [0x00000] in &lt;filename unknown&gt;:0
</I>&gt;<i> at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor
</I>&gt;<i> (System.Drawing.Image,int,int)
</I>&gt;<i>
</I>&gt;<i> The function call was the following:
</I>&gt;<i> newBitmap = new Bitmap(orgImage, iWidth, iHeight);
</I>&gt;<i> This code is executed in a separate thread controlled by the main window
</I>&gt;<i> thread.
</I>&gt;<i>
</I>&gt;<i> Now i tried to remove the 2.8.1 version (with the script from
</I>&gt;<i> <A HREF="http://www.mono-project.com/Mono:OSX">http://www.mono-project.com/Mono:OSX</A>) and installed the old 2.6.7 version
</I>&gt;<i> again, but now i do get a different error message...
</I>&gt;<i>
</I>&gt;<i> Generic Error [GDI+ status: GenericError]
</I>&gt;<i> at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in
</I>&gt;<i> &lt;filename unknown&gt;:0
</I>&gt;<i> at System.Drawing.Image.Save (System.String filename,
</I>&gt;<i> System.Drawing.Imaging.ImageCodecInfo encoder,
</I>&gt;<i> System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000] in
</I>&gt;<i> &lt;filename unknown&gt;:0
</I>&gt;<i> at (wrapper remoting-invoke-with-check) System.Drawing.Image:Save
</I>&gt;<i> (string,System.Drawing.Imaging.ImageCodecInfo,System.Drawing.Imaging.EncoderParameters)
</I>&gt;<i>
</I>&gt;<i> I also tried to use the 2.8 version but with no luck.
</I>&gt;<i>
</I>&gt;<i> Is there someone replaced with the 2.8.1 version that is not deleted with
</I>&gt;<i> the script mentioned above and that is also not replaced with the 2.6.7
</I>&gt;<i> version in the area of System.Drawing?
</I>&gt;<i>
</I>&gt;<i> Any help is highly appreciated!
</I>&gt;<i>
</I>&gt;<i> Kind regards,
</I>&gt;<i> Christian
</I>&gt;<i>
</I>
--
View this message in context: <A HREF="http://mono.1490590.n4.nabble.com/System-Drawing-problems-with-Mono-2-8-1-tp3050944p3051451.html">http://mono.1490590.n4.nabble.com/System-Drawing-problems-with-Mono-2-8-1-tp3050944p3051451.html</A>
Sent from the Mono - OSX mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003355.html">[Mono-osx] System.Drawing problems with Mono 2.8.1
</A></li>
<LI>Next message: <A HREF="003362.html">[Mono-osx] System.Drawing problems with Mono 2.8.1
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3361">[ date ]</a>
<a href="thread.html#3361">[ thread ]</a>
<a href="subject.html#3361">[ subject ]</a>
<a href="author.html#3361">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>