Bug #101295 ObjectDisposedException In MySqlConnection.Finalize
| Submitted: | 23 Oct 2020 17:29 | Modified: | 24 Nov 2020 17:02 |
|---|---|---|---|
| Reporter: | Nate Smith | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | Connector / NET | Severity: | S2 (Serious) |
| Version: | 8.0.22 | OS: | Windows (Windows 10) |
| Assigned to: | CPU Architecture: | x86 | |
| Tags: | .net, connector, objectdisposedexception | ||
[23 Oct 2020 17:29]
Nate Smith
[23 Oct 2020 23:06]
Bradley Grainger
If "MySqlConnection.Finalize" is being called, then it seems very likely your code is not disposing the various MySql.Data objects that are IDisposable; this includes MySqlConnection, MySqlCommand, and MySqlDataReader. You should ensure that all MySql.Data objects are disposed, typically by using a using block, e.g., "using (var connection = new MySqlConnection(...))".
[23 Oct 2020 23:07]
Bradley Grainger
My previous example was C# syntax, but VB is similar: https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/using-s...
[24 Oct 2020 17:02]
MySQL Verification Team
Please check Bradley Grainger comment and Percona XtraDB Cluster aren't supported.
[25 Nov 2020 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.