Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using/End using and Try/Catch
Message
From
31/05/2012 03:26:19
 
 
To
30/05/2012 20:32:59
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:
01544898
Views:
58
This message has been marked as the solution to the initial question of the thread.
>If I use a Using/End using block and inside I have a Try/Catch which could return False, will the Return False affect the End Using? In other word, will the End Using always be done if I exit this block before it reaches the End Using?

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

Click here to load this message in the networking platform