SA-MP Forums Archive
Threading - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Threading (/showthread.php?tid=340491)



Threading - fubar - 07.05.2012

hi everyone,im hoping someone can give me a explanation on what i have done wrong,i have changed my mysql to use threaded querys and all looks ok on my windows test server,threadsafe is what we are looking at
Код:
CMySQLHandler::FreeResult() - Result was successfully free'd.
CMySQLHandler::ProcessQueryThread(SELECT IP FROM `playerdata` WHERE user = 'fubar' LIMIT 1) - Data is getting passed to OnQueryFinish() - (Threadsafe: Yes)
OnQueryFinish(3,"SELECT IP FROM `playerdata` WHERE user = 'fubar' LIMIT 1") - Called.
>> mysql_store_result( Connection handle: 1 )
But on my linux server it is looking bad
Код:
CMySQLHandler::FreeResult() - Result was successfully free'd.
CMySQLHandler::ProcessQueryThread(SELECT IP FROM `playerdata` WHERE user = 'fubar' LIMIT 1) - Data is getting passed to OnQueryFinish() - (Threadsafe: No)
OnQueryFinish(3,"SELECT IP FROM `playerdata` WHERE user = 'fubar' LIMIT 1") - Called.
>> mysql_store_result( Connection handle: 1 )
Threadsafe is saying no,this has lost me,The gm is the same for both servers,so i believe is it my database or is it something else i missed

This is a 3c server and im using MySQL plugin R6-2,so i have no problems with info saving or anything like that,just this threadsafe problem.


Re: Threading - Edvin - 08.07.2012

And what do you do to solve this problem? I have too this problem ...