estimated max. usage: unknown, due to recursion
#1

I have a problem with:
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          17264 bytes
Code size:          3725772 bytes
Data size:         22187752 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:25947172 bytes
This is problem:
Код:
estimated max. usage: unknown, due to recursion
Reply
#2

Well, the thing is like this.
You are using a function/stock/public/etc inside the same function and that's called recursion.
Like:

Код:
stock DoSomething(playerid)
{
     //Some code
     DoSomething(playerid);
}
Reply
#3

Take a view here


http://forum.sa-mp.com/showthread.ph...e+optimization

Good Day
Reply
#4

Quote:
Originally Posted by Aly
Посмотреть сообщение
Well, the thing is like this.
You are using a function/stock/public/etc inside the same function and that's called recursion.
Like:

Код:
stock DoSomething(playerid)
{
     //Some code
     DoSomething(playerid);
}
I watched this:
https://sampforum.blast.hk/showthread.php?tid=55261

How to find it, my gamemode has many lines?

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
Yes.
Reply
#5

Well for how long you're getting that line when you're compiling?
If it's something recently, you should check the last things you did, this is the only option you've got.
Reply
#6

Quote:
Originally Posted by Aly
Посмотреть сообщение
Well for how long you're getting that line when you're compiling?
If it's something recently, you should check the last things you did, this is the only option you've got.
I checked last.
Reply
#7

Did you find the problem?
Reply
#8

No .
Reply
#9

That doesn't mean there's a problem, recursion is just a code looping it self, but if you control it it wont be a problem.
Otherwise you can try using crashdetector to find it.
Reply
#10

How do you think?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)