[Mono-dev] Patch for SqlCommand

Neil Cawse neilcawse at geotab.com
Thu Jun 7 23:01:07 EDT 2007


I get the same (weird) segmentation fault I was getting before with your proposed changes. As an aside, not sure why I get a fault instead of an object disposed exception or something else.

This is the rough pseudo code as to what we are doing:
IDataReader reader;
try
{
        IDbCommand command = CreateCommand(connection);
        try
        {
                command.CommandText = "bla";
                command.Parameters = ..
                reader = command.ExecuteReader();
        }
        finally
        {
                command.Parameters.Clear();
                command.Dispose();
        }
        // Segmentation Fault on the line below.
        reader.Read();
}
finally
{
        reader.Dispose();
}

Maybe the gc is not working 100% and is collecting something it shouldn't?



More information about the Mono-devel-list mailing list