Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using/End using and Try/Catch
Message
From
31/05/2012 08:49:13
 
 
To
31/05/2012 08:44:18
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:
01544881
Message ID:
01544915
Views:
28
>>Remember that a Using block is compiled as a try/catch/finally block - so the outer finally will always execute (and Dispose() will be called) even when an exception occurs in an inner try/catch.
>
>So, basically, returning false in the Try or the Catch will then be ok for the entire cleanup to complete.

Yep..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform