[Mono-list] GDI+ Generic Error

Timothy Parez timothyparez at gmail.com
Thu May 8 08:13:54 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Some time ago I requested help with an ASP.NET application throwing a  
GDI+ Generic Error.
All this time I assumed this was a Mono issue, I was wrong.

The problem was simply access rights to the folder where I was saving  
thumbnail images.

System.Drawing.Image thumbnail = ..... bla bla bla

thumbnail.Save("path where I want to store");

Instead of throwing an exception with relevant information such as  
"The specified path does not exist or is invalid or whatever"...
both Mono and .NET throw a Generic GDI+ exception here.

Just posting in case someone runs into similar problems.


Timothy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFIIu6C+j5y+etesF8RAjkhAKCmKL+sC8rTqwbz+c21vlCG9muCUQCg4tOd
/ayIAVkahgnpHLPij+Uu4KA=
=oieu
-----END PGP SIGNATURE-----


More information about the Mono-list mailing list