lolo2787
01-08-2012, 14:17
ciao a tutti ,
quando vado per avviare il mio programma mi compare il seguente errore
http://www.techautomation.it/immagine.jpg
void SetData ( String^ myQuery) {
MySqlConnection^ conn = gcnew MySqlConnection(DATABASE);
try{
conn->Open();
MySqlCommand ^ myCommandInsert = gcnew MySqlCommand(myQuery, conn);
myCommandInsert->ExecuteNonQuery();
delete myCommandInsert;
}
catch (MySql::Data::MySqlClient::MySqlException^ ex){
WriteEventLog("Warning: SetData FAILS","Error durig 'SetData' with this query:"+ myQuery);
WriteLog("Warning: SetData FAILS","Error durig 'SetData' with this query:"+ myQuery);
DiagMessage("Warning: SetData FAILS" + ex);
delete ex;
}
conn->Close();
delete conn;
}
grazie mille :mc:
quando vado per avviare il mio programma mi compare il seguente errore
http://www.techautomation.it/immagine.jpg
void SetData ( String^ myQuery) {
MySqlConnection^ conn = gcnew MySqlConnection(DATABASE);
try{
conn->Open();
MySqlCommand ^ myCommandInsert = gcnew MySqlCommand(myQuery, conn);
myCommandInsert->ExecuteNonQuery();
delete myCommandInsert;
}
catch (MySql::Data::MySqlClient::MySqlException^ ex){
WriteEventLog("Warning: SetData FAILS","Error durig 'SetData' with this query:"+ myQuery);
WriteLog("Warning: SetData FAILS","Error durig 'SetData' with this query:"+ myQuery);
DiagMessage("Warning: SetData FAILS" + ex);
delete ex;
}
conn->Close();
delete conn;
}
grazie mille :mc: