03.04.2012, 21:41
I have not experinced this. Ive been using R7 version of blue g's plugin almost since it was released.
Delavor and playbox12, are you using mysql_format anywhere in your script? This function caused me enough trouble on CentOS as well. I had to revert to using mysql_real_escape_string.
robanswe, have a look with the nativechecker plugin. This should point out what is missing and in case of a simple problem, all you need is to double-check that you have the right file in the right folder. Anonym2009, use mysql_fetch_row(gName) instead of mysql_fetch_string. Also, after that, don't forget a call to mysql_free_result() to free the result. Of course, I suggest you to THREAD your queries and even use the caching function. But to me, it seems that your system is a bit architecturally flawed for this sort of changes. It would be handy to actually store the gang names in the server memory. Something like the CSTL plugin or GVar plugin will help you out in a case where you don't want to use regular arrays. |
free(szField); // add this Mutex::getInstance()->_unlockMutex(); return 1; }
Originally Posted by BlueG
Quote:
thanks for that information. I've released the source code, because of a lack of time. It's not the final release and I might make some important changes if I get the time. I will try to find out more about that problem you got. Anyway, peace out o/ |
Thanks for all your feedback. I've recently fixed some of the known bugs (memory leaks as well as mysql_format() crashes while using the '%e' specifier) with the help of CHC and Zeex on IRC. I would like to share the source and get some feedback before I fully release it (to avoid future bugs).
http://www.file-upload.net/download-.../R7-2.rar.html |
void * ProcessQueryThread(void *lpParam) { ... CMySQLHandler::errorInfo cError; cError.m_szQuery = cQueue.szQuery; cError.m_uiErrorID = mysql_errno(SQLHandle[i]->m_stConnectionPtr); SQLHandle[i]->m_dwError = cError.m_uiErrorID; cError.m_szCallback = cQueue.szCallback; cError.m_szError = mysql_error(SQLHandle[i]->m_stConnectionPtr); SQLHandle[i]->errorCallback.push(cError); SQLHandle[i]->m_bQueryProcessing = false; free(cQueue.szQuery); free(cQueue.szCallback); free(cQueue.szFormat);