Posts: 1,464
Threads: 11
Joined: Jan 2008
Reputation:
0
If you use db_free_result twice on the same result, it will crash the server (sometimes it works, though).
I know it's the scripter's own stupidity to do so, but IMO it shouldn't crash the server.
So this is what has been crashing my server? =/
I just started with SQL and got this problem, haha.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Confirmed.
Quote:
Originally Posted by armyoftwo
Same with MySQL plugin. Sometimes it crashes, sometimes it doesn't.
|
SQLite is natively included in SA-MP, MySQL is not.
Posts: 6,129
Threads: 36
Joined: Jan 2009
...this isn't a bug report for the MySQL plugin.
Posts: 127
Threads: 5
Joined: Nov 2009
Reputation:
0
Why should this be a bug, you don't have to free the same result twice...
Posts: 6,129
Threads: 36
Joined: Jan 2009
...because the server crashes maybe and scripting mistakes are [generally speaking] inevitable?
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
Server also crashes if you want to open file from non existant directory. I guess that is much more important issue than this, since you must be really *someword* to frre result more than one time.
And also server crashes if field's value is NULL.
Posts: 1,464
Threads: 11
Joined: Jan 2008
Reputation:
0
For me the server didn't crash directly at the function db_free_result, which obviously would've been easier for me (and I wouldn't have even reported this), but the weird thing was that the server called the next few callbacks properly before crashing.
I found that the bug was where it was after going through every single line and every single function from the point player connects to the point he/she spawns, even debugging the script didn't help, because like I said the moment the server crashed was jumping around.
Which is why I feel this, unlike those crashes Sergei reported, should be fixed because it's extremely sneaky one and I don't want anyone else to go through the same I did.