Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tips and tricks about System.Drawing.Bitmap
Message
De
20/05/2010 13:48:19
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Tips and tricks about System.Drawing.Bitmap
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01465322
Message ID:
01465322
Vues:
101
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
Répondre
Fil
Voir

Click here to load this message in the networking platform