SA-MP Forums Archive
Inline timer issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Inline timer issue (/showthread.php?tid=664950)



Inline timer issue - polygxn - 17.03.2019

So Im using THIS inline timer include.

The problem is when the SetInlineTimer executed I got back these errors in the console (however, its executing successfully):
PHP код:
[debugRun time error 5"Invalid memory access"
[debugAMX backtrace:
[
debug#0 00012a80 in Malloc_Free (Alloc:slot=8380680) at \pawno\include\YSI_Coding\y_malloc/funcs.inc:775
[debug#1 00051110 in public InlineTimersHandler (repeat=0, address=8380680, pointer=332848, offset=12, data1=1, data2=0, Alloc:mem=2089776) at \pawno\include\inline_timers.inc:27 
These are the lines in inline_timers.inc ( 25-28 ):
PHP код:
if (!repeat) {
    
free(Allocmget(Allocmem1));
    
free(Allocmem);

Here are some debug info:
PHP код:
Pawn compiler 3.2.3664                  Copyright (c1997-2006ITB CompuPhase
Header size
:           5684 bytes
Code size
:           362668 bytes
Data size
:          8380664 bytes
Stack
/heap size:   17039360 bytesestimated maxusageunknowndue to recursion
Total requirements
:25788376 bytes 
Im posting this since I have no clue how to fix this lol. I would appreciate some help (even if its working).


Re: Inline timer issue - Dutheil - 17.03.2019

Do you use YSI 5.x ?


Re: Inline timer issue - BrokiPL - 23.03.2019

I have this problem too. I don't know, I tried to fix it, but it doesn't fix.
And sorry for my bad English

EDIT: I use the Zeex compiler v3.10.8