Compiler message about header, code, stack, heap size
#1

Hi,
I've just read this http://forum.sa-mp.com/showpost.php?...32&postcount=7 about how to make crashdetect plugin shows the line of error in the console.

I created a file in the pawno directory called pawn.cfg and I added the following content inside:

Code:
-d3
Now, even if I compile new.pwn found in the pawno directory I get:
Code:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           1300 bytes
Code size:             1568 bytes
Data size:              520 bytes
Stack/heap size:      16384 bytes; estimated max. usage=20 cells (80 bytes)
Total requirements:   19772 bytes
NOTE: I even tried to use #pragma dynamic (some value here) it didn't work.

Any fix for that?

Thanks.
Reply
#2

Thats debug mode. It's supposed to be there, it's quite useful, I left mine like that...

If you don't like it remove your pawn.cfg file...

If your still having script problems and absolutely require crashdetect i'd leave it there until you get your problems fixed...
Reply
#3

Quote:
Originally Posted by Crayder
View Post
Thats debug mode. It's supposed to be there, it's quite useful, I left mine like that...

If you don't like it remove your pawn.cfg file...

If your still having script problems and absolutely require crashdetect i'd leave it there until you get your problems fixed...
I know, it's debug mode, the problem is that if I leave it like that, it will display in the console that I don't have enough heap/stack to run the code.
Reply
#4

Are you running your server at home or on a host/vps?

What is the ram size?
Reply
#5

Quote:
Originally Posted by Crayder
View Post
Are you running your server at home or on a host/vps?

What is the ram size?
I'm pretty sure, it's not RAM related. Anyways, I have 8 GB ram.
Reply
#6

Quote:
Originally Posted by Magic_Time
View Post
I know, it's debug mode, the problem is that if I leave it like that, it will display in the console that I don't have enough heap/stack to run the code.
It ALWAYS displays that message when the -d3 or -v option is specified, regardless of whether you have enough heap space. Debug mode is a tool for debugging. It is not supposed to permanently enabled.
Reply
#7

Quote:
Originally Posted by Vince
View Post
It ALWAYS displays that message when the -d3 or -v option is specified, regardless of whether you have enough heap space. Debug mode is a tool for debugging. It is not supposed to permanently enabled.
First: I never heard of a -v compiler option :3

Second: It is not supposed to permanently enabled.
Quote:

If your still having script problems and absolutely require crashdetect i'd leave it there until you get your problems fixed...

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)