C#/.Net Error: MySql.Data Object reference not set to an instance of an object.
Posted
by Simon
on Stack Overflow
See other posts from Stack Overflow
or by Simon
Published on 2010-03-17T17:24:04Z
Indexed on
2010/03/17
17:31 UTC
Read the original article
Hit count: 388
Hello, I get this exception on my Windows 7 64bit in application running in VS 2008 express. I am using Connector/Net 6.2.2.0:
Message:
Object reference not set to an instance of an object.
Source:
MySql.Data in MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
Stack trace:
in MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
in MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId)
in MySql.Data.MySqlClient.MySqlDataReader.NextResult()
in MySql.Data.MySqlClient.MySqlDataReader.Close()
in MySql.Data.MySqlClient.MySqlConnection.Close()
in MySql.Data.MySqlClient.MySqlConnection.Dispose(Boolean disposing)
in System.ComponentModel.Component.Finalize()
No inner exception.
This exception is unhalted and the debugger dont point on any code line. It just say "Object reference not set to an instance of an object. MySql.Data"
This error is really hard to repeat. On my Windows XP 32bit is all ok. Could it be error in 64bit Windows 7?
Thank you very much for your answers. Regards, simon
© Stack Overflow or respective owner