Need help!
#1

Код:
[22:35:53] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[22:35:53] [debug]  Stack pointer (STK) is 0x263E7C, heap pointer (HEA) is 0x2640D8
[22:35:53] [debug] AMX backtrace:
[debug] #0 0000c244 in public StartMap (0x0000005a) from miskakonsta.amx
[debug] #1 00013d14 in public OnDialogResponse (0x00000000, 0x0000071f, 0x00000001, 0x00000000, 0x00264020) from miskakonsta.amx
What is mean?

I just added MySQL reg/login system...
Reply
#2

Quote:
Originally Posted by Fich
Посмотреть сообщение
Код:
[22:35:53] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[22:35:53] [debug]  Stack pointer (STK) is 0x263E7C, heap pointer (HEA) is 0x2640D8
[22:35:53] [debug] AMX backtrace:
[debug] #0 0000c244 in public StartMap (0x0000005a) from miskakonsta.amx
[debug] #1 00013d14 in public OnDialogResponse (0x00000000, 0x0000071f, 0x00000001, 0x00000000, 0x00264020) from miskakonsta.amx
What is mean?

I just added MySQL reg/login system...
well, your script seems to be running out of memory. (approximately more than 604bytes too big)
the default stack size is 4096bytes or 0x1000 in hex
im assuming that's due to huge sql query strings you added just recently
but that's okey, these things sometimes need to be big.
a 300 char query string is nothing unusual.

As i said, your script is using too much memory.
Make a choice:

either increase it
pawn Код:
#pragma dynamic (value in bytes)
//quoting the wiki:
//'Sets the size of memory (in cells) assigned to the stack and heap.
//Required if you get the excess memory usage warning
//after compilation (a wierd table after the compiler copyright line)'
//"a wierd table after the compiler copyright line" - srsly? a wierd table! xD who wrote this
you can find out how much your script is using by adding '-v' as compile-flag.
then you'll see a message similar to this one where you can see the number of bytes required.
Код:
Header size:          11164 bytes
Code size:           349668 bytes
Data size:         17716792 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:18094008 bytes
or optimizing it.
Making it use less memory
thanks to code efficiency techniques you'll be learning here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)