SqlCommand.Dispose() not disposing the SqlParameters in it - Memory Leak - C#.NET
- by NLV
Hello
I've a windows forms application with MS SQL Server 2005 as the back end. I have written code in the form to call few stored procedures using SqlConnection, SqlCommand objects and i properly dispose everything.
I've disposed sqlcommand object by calling
oSqlCommand.Dispose()
But i witnessed my application consuming huge amount of memory.…