Question about fixes.inc - 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: Question about fixes.inc (
/showthread.php?tid=358719)
Question about fixes.inc -
ZicMortal - 11.07.2012
This topic is related to this one => https://sampforum.blast.hk/showthread.php?tid=292813
Its about these 3 functions: fclose, fwrite, fread
Bug section for them says: Crashes on an invalid handle.
I know fopen chashes when: If you use io_read and the file doesn't exist, the server will crash.
But i wonder, what about fwrite and fread functions. How can they crash the server?
And I also wonder, is there some other functions that can cause server crash (I mean, causing closing of server.exe file) if you know what I mean. I had some issues related to that recently so I hope someone can help me about that.
Re: Question about fixes.inc -
ZicMortal - 11.07.2012
I understand that, but.. I asked is there some other reasons that cause crashing server.exe
Few hours ago, I installed crashdetect plugin on my server and when it crashes it says this:
Код:
[17:46:21] [debug] #1 00000076 in public OnDialogResponse () from Mode.amx
I have figured out that dialogid 107 causes the crash. (OnDialogResponse debug)
So I am trying to figure out what can be problem there (what syntax can cause that)..
Because I am pretty sure that dialog is running fine (I tested it on home made server and it worked without any issues).
Re: Question about fixes.inc -
Vince - 11.07.2012
Compiling with -d3 debug flags will give you the actual name of the function that caused the crash, rather than an address.