On Sat, 2004-11-06 at 16:23 +0100, Chris Turchin wrote:
> Hi,
> 
> I have the following code in an httphandler that works fine with xsp but
> in mod_mono yields a 500 server error (without any entry in the apache
> error_log):
> 
> context.Response.ContentType = "image/jpeg";
> //write resized gd-sharp image to client...
> image.Save(GD.FileType.Jpeg,context.Response.OutputStream,quality);
> 
> It seems dependent on the amount of time the image.save() method needs,
> since when I save smaller files it succeeds and when I try and save
> large files it often fails. 
> 
> sample: (this should work)
> http://turchin.homelinux.net/gd-gallery/thumbnail.ashx?fmt=Preview&img=/data/images/img_5277_crop.jpg
> 
> sample 2: (this should fail)
> http://turchin.homelinux.net/gd-gallery/thumbnail.ashx?fmt=Original&img=/data/images/img_5277_crop.jpg
> 
> any ideas what I can do to avoid this and/or to find out more about what
> is going wrong? since there is no error caught in the try/catch
> statement in manged code and apache writes no error to the error_log, i
> am out of ideas... 


There was a bug in mod_mono that is now fixed. If you are using latest
releases of everything (1.0.4 or 1.1.2), this should work. Otherwise,
gimme a simple test case and I'll fix it asap.

-Gonzalo


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to