![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
In my application, I have queries being executed on 15 second intervals, using mysql_ping prior to sending the queries to make sure I'm still connected (using a persistant connection). However, if I unplug my cat5 t= o simulate losing my internet connection while the application is running, instead of skipping the query gracefully, Windows reports that libmysql.dll has crashed. This area of code looks something like this: if(connection =3D=3D NULL) return false; if(mysql_ping(connection) !=3D 0) return false; if(mysql_query(connection,query) !=3D 0) { // query failed } else { // execute the query } -- Adam |
![]() |
| Thread Tools | |
| Display Modes | |
| |