ASP.NET Memory Leak - OracleCommand
===

I have inherited some code like ths:

   

     Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
                Try
                    Dim Test As Integer
                    Dim strCon As String = "Data Source=TestDatabase;User Id=TestUser;Password=TestPassword;"
                    Dim objDBCon As New OracleConnection(strCon)
                    Dim objDBCmd As New OracleCommand
                    For Test = 0 To 100
                        Using objDBCon    
                            'More logic here 
                        End Using
                    Next
                Catch ex As Exception
                  'Handle the exception.  It is not absorbed.
                End Try
            End Sub

Is this going to cause a memory leak?  I would expect to see Using statements as follows:

    Using objDBCmd
        
    End Using

The ASP.NET process grows gradually (to over 1 GB) and WinDBG shows that there are OracleCommand objects on the heap (though not as many as I expected).  I suppose the OracleCommand could keep hold of other resources that would cause the process size to grow.







