Quote:
Originally Posted by wildwillie
Just a few comments about This release:
There is one known issue that I have not been able to fix yet and it relates to saving info to the database. The MySQL connector for C# does not allow multiple database readers (Unlike the Java version) and you will sometimes get a MySQL Exception in the log file. IL2ClodCommander will keep running, but some stats data is lost. If anyone knows of a setting in MySQL connector to allow multiple connections that would be great, otherwise the Database section will need to be re-written so statements are done serially.
WildWillie
|
@I see you're using a DataReader. You can only have 1 DataReader open at a time per connection. using blocks come in handy for those:
using( var reader = myCommand.ExecuteReader() ) {
while (reader.Read()) {
// get values, do stuff
}
}// reader gets closed
You only hint at it in the code in your question (currently), but it's possible that is part of your problem. You haven't shown how you're using the DataReader, so I'm not certain. Just a possibility.@
__________________

Asus P6T V2 Deluxe, I7 930, 3x2 GB RAM XMS3 Corsair1333 Mhz, Nvidia Leadtek GTX 470, Acer 1260p screen projector, Track IR 4 OS ver5, Saitek Pro Flight Rudder, Saitek X52, Win 7 x64 ultimate