System.Drawing in Windows or ASP.NET services

后端 未结 5 1037
遥遥无期
遥遥无期 2020-11-28 10:05

According to MSDN, it is not a particularly good idea to use classes within the System.Drawing namespace in a Windows Service or ASP.NET Service. Now I am d

5条回答
  •  有刺的猬
    2020-11-28 10:49

    Even though it's not officially supported, I've used the System.Drawing classes extensively on a high-volume web server (both web application and web services) for years without it causing any performance or reliability problems.

    I think the only way to determine if the code is safe to use is to test, monitor, and wrap any object with external resources in using{} statements.

提交回复
热议问题