Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tips and tricks about System.Drawing.Bitmap
Message
From
20/05/2010 13:48:19
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Tips and tricks about System.Drawing.Bitmap
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01465322
Message ID:
01465322
Views:
100
I have been using System.Drawing.Bitmap class for some time now. If you use that on a site such as:
Dim loImage As System.Drawing.Bitmap
loImage = New System.Drawing.Bitmap(oProcess.oApp.cHttpFat + lcImage + ".jpg")
Don't forget to do this:
loImage.Dispose()
As the image would remained locked in IIS. So, basically, if you wish to update a store item, for example, this will not be possible if a previous hit made access to that code and that the Dispose() event wouldn't be called.

Sometimes, I forget about that one. So, I thought I would add it here.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform