I switch to mysql for my server recently, and it comes up with "Crystal online.exe has stopped working..."
Then i click debug and theres a green arrow pointing to this code:
A green arrow like that means it's the next line to be executed. A yellow arrow is the actual line being executed. To me, this suggests that it's crashing inside the push_back call.
I don't immediately see anything wrong with the code. The push_back looks harmless. Are you doing any multithreading?
Yepp, a couple of threads, why? :)
The thing is, this code worked when i was using the ini file saving method, and i diddnt add any threads when i changed to mysql :S
If you have multiple threads accessing the vector at the same time, it could cause a memory error internally in the vector. You need to put some kind of lock on the vector, such as a mutex.
Perhaps the different way of loading data created/removed some lag, causing both threads to access the vector at the same. You could try concurrent_vector, but I haven't seen it ever before, so I'm not sure how you would use it.