.Close method not working

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply

.Close method not working

Post by 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?

Devart Team
Posts: 264
Joined: Thu 28 Oct 2004 13:56

Re: .Close method not working

Post by 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.

Post Reply