[Gtk-sharp-list] Gdk.Pixbuf.Savev() throws System.NullReferenceException

Ivan Gužvinec ivan.guzvinec@telemach.net
Tue, 13 Apr 2004 20:46:51 +0200


--=-/BeSZeVqIDHjwzocrhga
Content-Type: multipart/mixed; boundary="=-Mr8SX/pCjB/0kKsjNyND"


--=-Mr8SX/pCjB/0kKsjNyND
Content-Type: multipart/alternative; boundary="=-oX5+167LhlK/GPrv5aMs"


--=-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&)
in <0x00004> (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev
(intptr,string,string,string,string,intptr&)
in <0x0003a> Gdk.Pixbuf:Savev (string,string,string,string)
in <0x000a2> 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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; CHARSET=3DUTF-8">
  <META NAME=3D"GENERATOR" CONTENT=3D"GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I'm having trouble with Gdk.Pixbuf.Savev() method. Upon execution I get:<BR=
>
$ ./test.exe 001.JPG<BR>
001.JPG<BR>
 <BR>
Unhandled Exception: System.NullReferenceException: A null value was found =
where an object instance was required.<BR>
in (unmanaged) (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev (int=
ptr,string,string,string,string,intptr&amp;)<BR>
in &lt;0x00004&gt; (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev =
(intptr,string,string,string,string,intptr&amp;)<BR>
in &lt;0x0003a&gt; Gdk.Pixbuf:Savev (string,string,string,string)<BR>
in &lt;0x000a2&gt; pixbufTest:Main (string[])<BR>
_____________________________________________<BR>
<BR>
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.<BR>
<BR>
Is this a bug or did I get the parameters to the method wrong?<BR>
<BR>
I'm using Gtk# Release 0.18<BR>
<BR>
tnx,<BR>
Ivan
</BODY>
</HTML>

--=-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--