mail-archives/gtk-sharp-list/2004-April/003822.html

168 строки
5.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Gdk.Pixbuf.Savev() throws System.NullReferenceException
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:ivan.guzvinec%40telemach.net">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<LINK REL="Previous" HREF="003818.html">
<LINK REL="Next" HREF="003868.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Gdk.Pixbuf.Savev() throws System.NullReferenceException
</H1>
<B>Ivan Gu¾vinec
</B>
<A HREF="mailto:ivan.guzvinec%40telemach.net"
TITLE="[Gtk-sharp-list] Gdk.Pixbuf.Savev() throws System.NullReferenceException">ivan.guzvinec@telemach.net
</A><BR>
<I>Tue, 13 Apr 2004 20:46:51 +0200</I>
<P><UL>
<LI> Previous message: <A HREF="003818.html">[Gtk-sharp-list] re: Gnome Sharp 4 Windows
</A></li>
<LI> Next message: <A HREF="003868.html">[Gtk-sharp-list] Gdk.Pixbuf.Savev() throws
System.NullReferenceException
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3822">[ date ]</a>
<a href="thread.html#3822">[ thread ]</a>
<a href="subject.html#3822">[ subject ]</a>
<a href="author.html#3822">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>--=-/BeSZeVqIDHjwzocrhga
Content-Type: multipart/mixed; boundary=&quot;=-Mr8SX/pCjB/0kKsjNyND&quot;
--=-Mr8SX/pCjB/0kKsjNyND
Content-Type: multipart/alternative; boundary=&quot;=-oX5+167LhlK/GPrv5aMs&quot;
--=-oX5+167LhlK/GPrv5aMs
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi,
I'm having trouble with Gdk.Pixbuf.Savev() method. Upon execution I get:
$ ./test.exe 001.JPG
001.JPG
=20
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
in (unmanaged) (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev
(intptr,string,string,string,string,intptr&amp;)
in &lt;0x00004&gt; (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev
(intptr,string,string,string,string,intptr&amp;)
in &lt;0x0003a&gt; Gdk.Pixbuf:Savev (string,string,string,string)
in &lt;0x000a2&gt; pixbufTest:Main (string[])
_____________________________________________
I attached this test.cs program, that attempts to load a picture from
file specified in the first command line argument and immediately save
it to another file using the Savev() method.
Is this a bug or did I get the parameters to the method wrong?
I'm using Gtk# Release 0.18
tnx,
Ivan
--=-oX5+167LhlK/GPrv5aMs
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 TRANSITIONAL//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=3D&quot;Content-Type&quot; CONTENT=3D&quot;text/html; CHARSET=3DUTF-8&quot;&gt;
&lt;META NAME=3D&quot;GENERATOR&quot; CONTENT=3D&quot;GtkHTML/3.0.9&quot;&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
Hi,&lt;BR&gt;
&lt;BR&gt;
I'm having trouble with Gdk.Pixbuf.Savev() method. Upon execution I get:&lt;BR=
&gt;<i>
</I>$ ./test.exe 001.JPG&lt;BR&gt;
001.JPG&lt;BR&gt;
&lt;BR&gt;
Unhandled Exception: System.NullReferenceException: A null value was found =
where an object instance was required.&lt;BR&gt;
in (unmanaged) (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev (int=
ptr,string,string,string,string,intptr&amp;amp;)&lt;BR&gt;
in &amp;lt;0x00004&amp;gt; (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev =
(intptr,string,string,string,string,intptr&amp;amp;)&lt;BR&gt;
in &amp;lt;0x0003a&amp;gt; Gdk.Pixbuf:Savev (string,string,string,string)&lt;BR&gt;
in &amp;lt;0x000a2&amp;gt; pixbufTest:Main (string[])&lt;BR&gt;
_____________________________________________&lt;BR&gt;
&lt;BR&gt;
I attached this test.cs program, that attempts to load a picture from file =
specified in the first command line argument and immediately save it to ano=
ther file using the Savev() method.&lt;BR&gt;
&lt;BR&gt;
Is this a bug or did I get the parameters to the method wrong?&lt;BR&gt;
&lt;BR&gt;
I'm using Gtk# Release 0.18&lt;BR&gt;
&lt;BR&gt;
tnx,&lt;BR&gt;
Ivan
&lt;/BODY&gt;
&lt;/HTML&gt;
--=-oX5+167LhlK/GPrv5aMs--
--=-Mr8SX/pCjB/0kKsjNyND
Content-Disposition: attachment; filename=test.cs
Content-Transfer-Encoding: base64
Content-Type: text/x-csharp; name=test.cs; charset=
dXNpbmcgU3lzdGVtOw0KdXNpbmcgR3RrOw0KdXNpbmcgR2RrOw0KDQpjbGFzcyBwaXhidWZUZXN0
IHsNCiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQ0KICAgIHsNCiAg
ICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoYXJnc1swXSk7DQogICAgICAgIA0KICAgICAgICANCiAg
ICAgICAgQXBwbGljYXRpb24uSW5pdCgpOw0KICAgICAgICBQaXhidWYgcCA9IG5ldyBQaXhidWYo
YXJnc1swXSk7DQogICAgICAgIHAuU2F2ZXYoInNfIiArIGFyZ3NbMF0sICJqcGVnIiwgInF1YWxp
dHkiLCAiMTAwIik7DQogICAgICAgIA0KICAgIH0NCn0=
--=-Mr8SX/pCjB/0kKsjNyND--
--=-/BeSZeVqIDHjwzocrhga
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iQCVAwUAQHw1m8j+Az87AOMpAQIgbgP/eewzXqMZ/9Uz5i9NxVZeOsPY9h2Cypep
pIpLQ0sxkR6txwWW8+hrrvbivFTJGS0/29yVZlSszoZINAtAKOaWK5hcO3zzT/N7
+gwK6hJf7Z9bpuUDPPsO9iVdwpMrXbiqnicU8V65UOD5bQrhP38dZ5V4NBlVgy9N
D45lHXknZJ4=
=AoU2
-----END PGP SIGNATURE-----
--=-/BeSZeVqIDHjwzocrhga--
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="003818.html">[Gtk-sharp-list] re: Gnome Sharp 4 Windows
</A></li>
<LI> Next message: <A HREF="003868.html">[Gtk-sharp-list] Gdk.Pixbuf.Savev() throws
System.NullReferenceException
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3822">[ date ]</a>
<a href="thread.html#3822">[ thread ]</a>
<a href="subject.html#3822">[ subject ]</a>
<a href="author.html#3822">[ author ]</a>
</LI>
</UL>
</body></html>