MySQL Throws NullReferenceException in Finalize... How are you coping with this?
- by Cyril Gupta
I am using MySQL with the .Net connector on 64 bit Windows. For some reason Mysql is throwing a NullReferenceException in Finalize. This is the problem here and it seems that its due to a bug described here. This bug was reported in 6.22, but I am getting the issue with 6.23 too so apparently it is not fixed.
I am using MySQL both with the helper classes, and by instantiating the connection and the Mysqlcommand object.
Does anybody have any idea what part of my code do I need to change to fix this issue? Cause even though this is a bug in Mysql this is not universal because I am not getting the problem in my other projects. MySQL bug report has no details on how to reproduce it either.
Any suggestions?