easyDialog.inc exceed heap size
#3

Heap/stack size max. usage estimations are based, mostly, on how much depth of function calls your script might fall into. Provided there is no recursion, in which case it'd theoretically be infinite. This happens because each depth requires arguments and returns addresses amongst other data to be added to the stack.

In any case, for SA-MP at least, the correct solution is always to just increase the size of the heap. Do this by adding this preprocessor directive to your script:

#pragma dynamic 16000

This will set your script's heap to 16000 cells, or around 64k bytes. There are no downsides to having too much heap other than meaningless amounts of extra memory usage. If this still worries you for whatever reason you could do 8000 (for 32k bytes)
Reply


Messages In This Thread
easyDialog.inc exceed heap size - by pollo97 - 28.01.2020, 15:02
Re: easyDialog.inc exceed heap size - by Meric - 30.01.2020, 14:54
Re: easyDialog.inc exceed heap size - by Markski - 30.01.2020, 21:07
Re: easyDialog.inc exceed heap size - by Uberanwar - 31.01.2020, 07:12
Re: easyDialog.inc exceed heap size - by Markski - 31.01.2020, 12:41
Re: easyDialog.inc exceed heap size - by pollo97 - 01.02.2020, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)