Portal SAMP
[Ajuda] Stack/heap collision (insufficient stack size) - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Stack/heap collision (insufficient stack size) (/showthread.php?tid=4409)



Stack/heap collision (insufficient stack size) - L10motos - 14/01/2024

Código:
[2024-01-14T02:32:33-0300] [Error] Stack/heap collision (insufficient stack size)
[2024-01-14T02:32:34-0300] [Error] Stack/heap collision (insufficient stack size)
[2024-01-14T02:32:34-0300] [Error] SetTimer(Ex): There was a problem in calling OneSecond: Stack/heap collision (insufficient stack size)
[2024-01-14T02:32:34-0300] [Error] SetTimer(Ex): There was a problem in calling OtherTime: Stack/heap collision (insufficient stack size)
[2024-01-14T02:32:35-0300] [Error] SetTimer(Ex): There was a problem in calling ThreeSeconds: Stack/heap collision (insufficient stack size)
[2024-01-14T02:32:35-0300] [Error] SetTimer(Ex): There was a problem in calling OneSecond: Stack/heap collision (insufficient stack size)
[2024-01-14T02:32:35-0300] [Error] SetTimer(Ex): There was a problem in calling OtherTime: Stack/heap collision (insufficient stack size)

Código:
public OnGameModeInit()
{
    SetTimer("OneSecond", 1000, true);
    SetTimer("TwoSeconds", 2000, true);
    SetTimer("ThreeSeconds", 3000, true);
    SetTimer("FiveSeconds", 5000, true);
    SetTimer("TwentySeconds", 20000, true);

SetTimer("OtherTime", 1000, true);

Será que devo passar SetTimer para SetTimerEx?


RE: Stack/heap collision (insufficient stack size) - blueN - 14/01/2024

Mostra como tá a construção desse código. Envia as callbacks que esses timers estão chamando.