[Mono-list] problem with embedded PNG resources
Arturo
arturogf@ugr.es
Sat, 12 Feb 2005 00:24:03 +0100
Hello again,
Thanks Lluis for your answer some days ago. ;).
I'm having a problem trying to embedding png images into an exe with
option "-resource:resource_path,resource". It really seems to be
embedding the right way, but if i move the .exe out of the output path,
it fails when i try to execute:
arturo@ubuntuserver:~/programacion/mono/MORCILIA $ mono morcilia.exe
Unhandled Exception: GLib.GException: No se ha podido abrir el archivo
«images/logo_ilias.png»: No existe el fichero o el directorio
in <0x000a4> Gdk.Pixbuf:.ctor (string)
in <0x000a4> MORCILIA.DruidInstaller:.ctor (string[])
in <0x00020> MORCILIA.GtkMorcilia:Main (string[])
Why is it keeping path information? I want the png embedded, not
referencing any path...
I can't understand why it happens. I'm calling Gdk.Pixbuf like:
logo = new Gdk.Pixbuf("images/logo_ilias.png");
but i tried logo = new Gdk.Pixbuf(null,"images/logo_ilias.png"), as i
saw it in Edd Dumbill excelent book, but don't know its effect, it also
fails on execution time. This method isn't still documented in monodoc.
Any hint would be highly appreciated,
Regards,
Arturo.