PDA

View Full Version : GDI+ Hangs when drawing text


TooMuch2AM
11-24-2003, 07:32 AM
I have an ASP.NET page written in VB that composites text onto an image and outputs the resulting image to the browser.

The code is hardly rocket science, and works fine on a local server; but attempting to execute the code on the DASP servers causes a hang and eventually causes the entire site to display 'Service Unavailable'.

I've done some much more complex GDI+ code on the site (such as compositing 2 images together) and that is working like a dream, but as soon as I try to use a Graphics.Drawstring statement I'm in a world of pain.

This is starting to tick me off big time, so any suggestions would be greatly appreciated!

Thanks!
Mike

bruce
11-25-2003, 11:32 AM
Can you post your code?

A simple ASP.net example that highlight the problem will be sufficient.


[b]quote:Originally posted by TooMuch2AM

I have an ASP.NET page written in VB that composites text onto an image and outputs the resulting image to the browser.

The code is hardly rocket science, and works fine on a local server; but attempting to execute the code on the DASP servers causes a hang and eventually causes the entire site to display 'Service Unavailable'.

I've done some much more complex GDI+ code on the site (such as compositing 2 images together) and that is working like a dream, but as soon as I try to use a Graphics.Drawstring statement I'm in a world of pain.

This is starting to tick me off big time, so any suggestions would be greatly appreciated!

Thanks!
Mike
</blockquote id="quote"></font id="quote">

jrwooten
04-22-2004, 07:41 AM
Does anyone know how to handle exceptions caused by "Generic GDI+ errors"??? I have tried placing the code in TRY/CATCH blocks but that does not seem to handle these exceptions.

I have a huge application that uses GDI+ which works great for the most part, but these "generic" errors seem very sporadic and I do not know how to handle the exceptions they cause...

bruce
04-22-2004, 12:04 PM
Need more information to help you.

[b]quote:Originally posted by jrwooten

Does anyone know how to handle exceptions caused by "Generic GDI+ errors"??? I have tried placing the code in TRY/CATCH blocks but that does not seem to handle these exceptions.

I have a huge application that uses GDI+ which works great for the most part, but these "generic" errors seem very sporadic and I do not know how to handle the exceptions they cause...
</blockquote id="quote"></font id="quote">