GDI+ Hangs when drawing text

Discussion in 'ASP.NET / ASP.NET Core' started by TooMuch2AM, Nov 24, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Can you post your code?

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


    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">
     
  3. 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...
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    Need more information to help you.

    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">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page