A situation was found in which in the c-treeACE SQL ADO.NET provider's ExecuteScalar() method may not be calling the reader.Close function. This only occurred in certain circumstances in which the reader itself caused an exception. The method has been altered to ensure the reader is always closed.