Page 1 of 1

.Close method not working

Posted: Sun 26 Dec 2004 05:49
by Trek
Whenever I use the .close method the connection doesn't actually close. Only thing that seems to close it is when the application itself is terminated. Any suggestions?

Re: .Close method not working

Posted: Tue 28 Dec 2004 07:06
by Oleg
This behaviour concerns connection pooling, when you call .close method a connection isn't not closed but added to the pool. When you open a connection is drawn from the pool. You can read about using connection pooling in the documentation for MySQLDirect .NET and MSDN. If you need to disable connection pooling you should add parameter pooling = false in your connection string.