[Gtk-sharp-list] GLib.GException: encoding problem?
Shaika-Dzari Shaika-Dzari
shaikadzari at gmail.com
Sat Dec 9 12:34:56 EST 2006
Hi everyone!
I create an application on linux and I'm trying to run it on windows too (XP
SP2).
I have an exception when I use on my my function:
GLib.GException: L'ouverture du fichier « C:\Documents and Settings\RÃ(c)my
Guillemette\My Documents\animeshell\default\1.jpg » a échoué : No such file
or directory
at Gdk.Pixbuf..ctor(String filename)
at animeshell.Traitement.ImageSearch(Image imgCover)
You can see some weird caracters near the user name who execute the program.
Is it some kind of encoding problem?
The function that launch me this exception:
// Dossier = Environment.GetFolderPath(Environment.SpecialFolder.MyComputer
)+"\\animeshell\\default\\";
sImage = TreeviewSelectID+".png";
if (sImage == "NoImage.png")
imgCover.Pixbuf = Pixbuf.LoadFromResource("NoImage.png");
else
{
// Objet image
Pixbuf imgSelection = new Pixbuf(Dossier+sImage);
// Chargement de l'image
imgSelection = imgSelection.ScaleSimple(160, 240, InterpType.Hyper);
imgCover.Pixbuf = imgSelection;
Ret = true;
}
This .exe was create on my Opensuse 10.2 with gmcs --target=winexe.
Bonus question :-)
Will a new gtk-sharp for windows be released soon?
I feel you guy have made a lot of work this year and I think 2.7.1 needed to
be update.
thank you for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20061209/2fc8a141/attachment.html
More information about the Gtk-sharp-list
mailing list