Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small tip on using images
Message
From
10/04/2016 16:51:46
 
 
General information
Forum:
ASP.NET
Category:
Pictures and Image processing
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01634620
Message ID:
01634630
Views:
38
>Better to use 'Using ..... End Using' - that way Dispose() will be called even if an exception is thrown inside the block :
>https://msdn.microsoft.com/en-us/library/htd05whh(v=vs.120).aspx

That applies in certain situations. In this case, oImage has a reference from another method. So, I cannot broadcast a Using syntax across methods.

But, inside a method, yes, I have it at several locations and it works great.

Thanks
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform