Posts: 220
Threads: 54
Joined: Jan 2014
Good morning.
When I compile my gamemode (From about 35,000 lines) I get this:
pawn Код:
Header size: 18992 bytes
Code size: 1524988 bytes
Data size: 5877080 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5987 cells (23948 bytes)
Total requirements: 7437444 bytes
I read that it came from memory or something like that, but I would be sure.
Why it appears CAQ?
And how to fix it?
Thank you.
Posts: 498
Threads: 24
Joined: Apr 2013
=)) don't care it nothing happend you can do your work after compile it will give you a .amx file
if you don't like this message you can change your pawno
Posts: 79
Threads: 8
Joined: Nov 2011
Reputation:
0
Had the same thing twice. It doesn't matter TheSy, you just can continue scripting and compile what and whenever you want.
Posts: 220
Threads: 54
Joined: Jan 2014
That's not the concern.
Is that it will not impact on the players when they play (slowdowns, lags ...?)
Say at the level of optimization I'm not strong (And my English as the way xD).
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
If you didnt compile your mode with debug level 3 (-d3) which also pops up that message
Otherwise it shows that there is a possible heap / stack collision in your code
Usually happens if you used a lot of local variables or stacked a lot of functions
There are two ways to fix it,
first, recheck your code and don't waste memory (you got by default around 16kB local memory ~ 4000 cells)
second, increase the stack / heap memory block
Posts: 498
Threads: 24
Joined: Apr 2013
No TheSy it will do nothing
do your work and don't care it
one of my gamemode was like that
Posts: 342
Threads: 24
Joined: Feb 2013
maybe you're loosing some bracked "{"
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
Add this line at top of your script, somewhere at defines
#pragma dynamic Number
where Number is bytes at: Total requirements: 7437444 bytes
vv
#pragma dynamic 7437444
Posts: 220
Threads: 54
Joined: Jan 2014
Quote:
Originally Posted by ******
Have your players been slowed down?
|
I have not opened it as a preventive and informative for me especially for the future.
Quote:
Originally Posted by Nero_3D
If you didnt compile your mode with debug level 3 (-d3) which also pops up that message
Otherwise it shows that there is a possible heap / stack collision in your code
Usually happens if you used a lot of local variables or stacked a lot of functions
There are two ways to fix it,
first, recheck your code and don't waste memory (you got by default around 16kB local memory ~ 4000 cells)
second, increase the stack / heap memory block
|
I read a method with the dynamic pragma to fix it, but I want to fix it so "clean"
.
Quote:
Originally Posted by Raza2013
maybe you're loosing some bracked "{"
|
No.
There would have been an otherwise error.
EDIT:
Quote:
Originally Posted by ikey07
Add this line at top of your script, somewhere at defines
#pragma dynamic Number
where Number is bytes at: Total requirements: 7437444 bytes
vv
#pragma dynamic 7437444
|
I read a method with the dynamic pragma to fix it, but I want to fix it so "clean"
.
Posts: 498
Threads: 24
Joined: Apr 2013
i said change you pawno wait i'm uploading for you