Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing IDisposable in a class
Message
 
To
14/02/2014 16:14:14
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01594093
Message ID:
01594388
Views:
33
>I actually prefer to have the disposable feature at the class level so I do not have to negotiate with that in the client class.
>
>Actually, I almost do not have any Using in a client application. All the Using, whereas any problematic of failure, memory leak and so on, are all plugged into the framework. Which is where I believe they all should be. So, any developer following the standards for development a new application, do not have to worry about that.

I'm not sure I understand this. Since Using ... End Using is a block in VB, it is difficult to "plug into the framework" no? My understanding is that it allows us to use an "unmanaged" resource, and control when that resource is relinquished, as opposed to wait until the Garbage Collector kicks in. Managing resources is a Client Application thing no?

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform