Hi,
I am debugging an application which spawns 2 threads in C#.
Both the threads try & get sql connection to a DB and insert some records in to DB.
The Problem is when I run the application the second thread is throwing an exception which states that the SqlConnection is already Open.But the First thread has closed its connection by commit/rollback.Hence there are no open connections!!!
I am surprised why it behaving like this while Running the application...any inputs appreciated
rgds.
raghu
I am debugging an application which spawns 2 threads in C#.
Both the threads try & get sql connection to a DB and insert some records in to DB.
The Problem is when I run the application the second thread is throwing an exception which states that the SqlConnection is already Open.But the First thread has closed its connection by commit/rollback.Hence there are no open connections!!!
I am surprised why it behaving like this while Running the application...any inputs appreciated
rgds.
raghu