I'm getting these errors on a mySQL database hat is connected to the interent. Maybe the connection is timing out? Or it's in the code. Here are the Errors.
This is the error that pops up in a message box.
Unhandled exception at 0x57088ce4 in lsniff.exe: 0xC0000005: Access violation reading location 0x00000000
This is under the call stack when the app breaks
>russ.exe!main(int _argc=1, char * * _argv=0x00251bf8)
Line 224 + 0x9 bytes C++ russ.exe!__tmainCRTStartup()
Line 278 + 0x19 bytes C russ.exe!mainCRTStartup()
Line 189 C –
And this is next to the line in the code....
res_set 0x00000000 {row_count=??? fields=??? data=??? ...}.
Here is the code.
(mysql_real_connect(conn,"urlock.db.9873143.hostedresource.com"
,"Dk","Ad66","Dk",0,NULL,0) !=0);
char queryString[1024];
sprintf(queryString, "SELECT COUNT(*) FROM tblURLIP WHERE IP = '%s'
AND IPStatus = '1' AND IPType = '3' AND IPMax ='0'", ipSrc == 0 ? "0" : ipSrc);
mysql_query(conn, queryString);
my_ulonglong i = 0;
res_set = mysql_store_result(conn);
my_ulonglong numrows = mysql_num_rows(res_set);
LEGIT = mysql_fetch_row(res_set);