C
Charles A. Lackman
Hello,
I was just wondering, when reusing a Command Object and Connection, what is
the best way of releasing their resources? i.e.
Dim AConnection As New OledbConnection
Dim ACommand As New OledbCommand
Does the following make a new object in place of the old or does it make 2
objects for each?
AConnection = New OledbConnection
ACommand = New OledbCommand
It is better to do the following?
ACnnection.Dispose
ACommand.Dispose
AConnection = New OledbConnection
ACommand = New OledbCommand
Thanks,
Chuck
I was just wondering, when reusing a Command Object and Connection, what is
the best way of releasing their resources? i.e.
Dim AConnection As New OledbConnection
Dim ACommand As New OledbCommand
Does the following make a new object in place of the old or does it make 2
objects for each?
AConnection = New OledbConnection
ACommand = New OledbCommand
It is better to do the following?
ACnnection.Dispose
ACommand.Dispose
AConnection = New OledbConnection
ACommand = New OledbCommand
Thanks,
Chuck