Hello.
I have been teaching myself .NET over the last few months and have had
some success. I would like to ask a question though...
A number of examples I have followed have the following in their
finally statement
Try
......
Catch
......
Finally
If (Not IsNothing(dbCon n)) Then
dbConn.Close()
End If
End Try
Will my data connection always close using this method or should I
just use dbConn.close?
I have a program that seems to be holding onto its connection - am I
missing something?
I have been teaching myself .NET over the last few months and have had
some success. I would like to ask a question though...
A number of examples I have followed have the following in their
finally statement
Try
......
Catch
......
Finally
If (Not IsNothing(dbCon n)) Then
dbConn.Close()
End If
End Try
Will my data connection always close using this method or should I
just use dbConn.close?
I have a program that seems to be holding onto its connection - am I
missing something?
Comment