SA-MP Forums Archive
[help] Debug info - 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: [help] Debug info (/showthread.php?tid=355162)



[help] Debug info - wups - 29.06.2012

Quote:

[10:34:53] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[10:34:53] [debug] Stack index (STK) is 0x61DF98, heap index (HEA) is 0x61F4A0
[10:34:53] [debug] AMX backtrace:
[10:34:53] [debug] #0 00384f1c in SaveCar (playerid=61) at GameMode.pwn:34225

This is a long mysql query, and line 34225 is the last part of it(the query is split into multiple format functions).
I don't know if it has anything to do with this:
pawn Код:
#pragma dynamic 15000
I have this at the end of my script.

P.S. I should note, that the query is 4048 cells.


Re: [help] Debug info - iggy1 - 29.06.2012

If i was you i'd split the query into two separate queries (halfing the size of the array), so you don't have to use "#pragma dynamic".

Or a not so good idea, make the array global.


Re: [help] Debug info - wups - 29.06.2012

Quote:
Originally Posted by iggy1
Посмотреть сообщение
If i was you i'd split the query into two separate queries (halfing the size of the array), so you don't have to use "#pragma dynamic".

Or a not so good idea, make the array global.
Why would you avoid pragma dynamic? I guess I'll just raise it's value.