HighTechTalks DotNet Forums  

Re: GDI+ incompatible with ASP.NET?

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss Re: GDI+ incompatible with ASP.NET? in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
bruce barker
 
Posts: n/a

Default Re: GDI+ incompatible with ASP.NET? - 01-10-2007 , 02:12 AM






the problem with using the gdi library is that it is not free threaded.
this means that one asp.net request could block another (as some
routines can only be used one thread ata time). this can cause a
performance problem. there is also small chance with async processing a
webrequest could block it self. you can avoid this by setting aspcompat
on (which limits a webrequest to one thread) and again limits
performance. the aspcompat feature is not available to web services.


another minor problem is you could call a routine that accesses the
desktop, and of course this would throw an exception.

-- bruce (sqlwork.com)


Djm181 wrote:
Quote:
According to this page:
http://msdn2.microsoft.com/en-us/lib...m.drawing.aspx - System.Drawing
shouldn't be used from an ASP.NET application. For a start this seems mad,
but plenty of people (including me) are doing this. Does this documentation
mean something other than what I am reading?

Cheers

David

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.