[Mono-list] Unspecific error: System.Exception: Generic Error [GDI+ status: GenericError]

Sebastien Pouliot sebastien.pouliot at gmail.com
Thu Oct 28 14:28:46 EDT 2010


On Thu, 2010-10-28 at 20:05 +0200, Yves Goergen wrote:
> Yet another test: I've tried using ImageCodecInfo and EncoderParameters
> instead of ImageFormat for the Bitmap.Save method. But it wouldn't
> change a thing, 

No it won't. If the simplest test case does not work, more complex cases
won't either.

> still the same exception when it works on Windows.

It works because you have a working gdiplus.dll on your windows box -
otherwise it would not work.

>  Is
> there just some library or package missing that I haven't found? Is
> there a requirements list available somewhere for those methods?
> 

There is only one important dependency [1]: libgdiplus

If it's installed then you should be able to open/save PNG/JPEG/TIFF/GIF
files. If you have troubles then it's because:

(a) your package repository has a broken libgdiplus package (unlikely or
we would have heard of it many times);

(b) you're using a different version of libgdiplus (compared to mono).
Your package manager should not allow this, but please check;

(c) you compiled libgdiplus yourself and were missing some other
development packages (so your libgdiplus is missing some features);

(d) your system, scripts, paths are non-standard which makes it
impossible to load the installed libgdiplus, see "man mono" and [2] for
help

Sebastien

[1] http://www.mono-project.com/Drawing
[2] http://www.mono-project.com/DllNotFoundException



More information about the Mono-list mailing list