function 'mysql_num_rows' call from dll 'libmysql.dll' critical error c0000005 at 100040F4.

 
 function 'mysql_num_rows' call from dll 'libmysql.dll' critical error c0000005 at 100040F4.
 int mrticket = -1;
   string query="Select concat(';',concat_ws(';', masterticket, ticket))  from test.tickets where Ticket = " + ticket;

   int length=StringLen(query); 
   mysql_real_query(mysql,query,length); 
   int result = mysql_store_result(mysql); 

   int numOfRows = mysql_num_rows(result);
   Print("aaa" + numOfRows);
   for (int i=0;i<numOfRows;i++) { 
      string row = mysql_fetch_row(result);
      mrticket = decodeMasterTicket(row);
   } 
   mysql_free_result(result); 

   return (mrticket); 

 

I'm not sure why i'm getting this error 

 
talavi:
 function 'mysql_num_rows' call from dll 'libmysql.dll' critical error c0000005 at 100040F4.
<CODE DELETED>

Please read some other posts before posting . . .

Please edit your post . . .    please use the   SRC   button to post code: How to use the   SRC   button. 

 

You should talk to the person who coded the DLL,  if you had problems with a Microsoft DLL would you ask about it here ?