memory..
From: pvp (anonymous_at_discussions.microsoft.com)
Date: 04/14/04
- Next message: Aurin: "RE: System.InvalidOperationException: There is already an open DataReader associated with this Connection which must be closed first"
- Previous message: John: "No of open connectiosn"
- Next in thread: Miha Markic [MVP C#]: "Re: memory.."
- Reply: Miha Markic [MVP C#]: "Re: memory.."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Apr 2004 06:21:04 -0700
I wrote a ado.net application that uses dataadapter,connection and command objects.
I have a procedure to populate dataset.I call dispose on all objects after dataset is populate and close the connection.
I see that the application still uses connection on sqlserver(I verified this by executing sp_who on sqlserver)
application dosen't release connection untill I close the form or end the application.
I tried calling gc.collect but this did not work.
What is work around for this problem ?
Please suggest
- Next message: Aurin: "RE: System.InvalidOperationException: There is already an open DataReader associated with this Connection which must be closed first"
- Previous message: John: "No of open connectiosn"
- Next in thread: Miha Markic [MVP C#]: "Re: memory.."
- Reply: Miha Markic [MVP C#]: "Re: memory.."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|