.Close method not working

.Close method not working

Postby Trek » Sun 26 Dec 2004 05:49

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

Postby Oleg » Tue 28 Dec 2004 07:06

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.
Devart Team
Posts: 264
Joined: Thu 28 Oct 2004 13:56

Return to dotConnect for MySQL