Memory Leak?
Posted by: Daniel H.
Date: April 04, 2014 03:12PM

Hello - I've a problem with the mysql connector for c#.

My code-example:

using (MySqlCommand mySQL_CMD = new MySqlCommand("UPDATE `Table` SET `Value`=?Value WHERE `ID`=?ID", Connection))
{
mySQL_CMD.Parameters.Add("?ID", MySqlDbType.UInt32).Value = 5;
mySQL_CMD.Parameters.Add("?Value", MySqlDbType.UInt32).Value = 5;
await mySQL_CMD.ExecuteNonQueryAsync();
}

after calling this functions many times my memory increased and my application crashed i've tried to use "mySQL_CMD.Parameters.clear()" because memory profiler tells me there are many mysqlparameter instances ... but no success.

So i dont know how to use the lib correct to not create a big memory leak :(

I hope someone can help me.

Greetz

Options: ReplyQuote


Subject
Written By
Posted
Memory Leak?
April 04, 2014 03:12PM
April 05, 2014 03:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.