Closed
Description
Connector/NET allows the following code:
var connection = new MySqlConnection("connection string");
connection.Open();
connection.Dispose();
connection.Open();
MySqlConnector throws an ObjectDisposedException
on the last line.
In practice, this could happen if a MySqlConnection
object was captured by a lambda inside a using
block, then invoked after the connection is disposed.
Metadata
Metadata
Assignees
Labels
No labels