[Mono-list] mod_mono/apache error issue?

Chris Turchin chris@turchin.net
Sat, 06 Nov 2004 16:23:28 +0100


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... 

Thanks.

Regards,
--chris


-- 
Chris Turchin <chris@turchin.net>