SA-MP Forums Archive
YSI Warning || y_malloc set up via CallLocalFunction - 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: YSI Warning || y_malloc set up via CallLocalFunction (/showthread.php?tid=520782)



YSI Warning || y_malloc set up via CallLocalFunction - Beckett - 20.06.2014

What does this error mean and how to fix it?

pawn Code:
YSI Warning: y_malloc set up via CallLocalFunction, memory corruption is a remote possibility.



Re : YSI Warning || y_malloc set up via CallLocalFunction - MCZOFT - 20.06.2014

it seems in YSI 3.1 there wasn't that problem tho',

Try to Update your ZCMD and YSI all the files and Includes ..
and reply to see if the problem still to see what i will do


Re: YSI Warning || y_malloc set up via CallLocalFunction - Beckett - 23.06.2014

Updated them same issue.


Re: YSI Warning || y_malloc set up via CallLocalFunction - Konstantinos - 23.06.2014

http://forum.sa-mp.com/showpost.php?...&postcount=327


Re: YSI Warning || y_malloc set up via CallLocalFunction - hamzajaved780 - 03.05.2015

Any fix bcz the link is dead


Re: YSI Warning || y_malloc set up via CallLocalFunction - Misiur - 03.05.2015

Usually it's a problem with includes inproperly hooking OnGameModeInit. @hamzajaved780, create a new thread, and show which includes are you using.


Re: YSI Warning || y_malloc set up via CallLocalFunction - Ahmad45123 - 03.05.2015

Quote:
Originally Posted by hamzajaved780
View Post
Any fix bcz the link is dead
Quote:
Originally Posted by ******
View Post
Yes, the problem can be fixed by changing the include order, I want a better solution though. Basically, if you get that and use an inline function inside OnGameModeInit, you MAY get a horrible crash. 3.1 doesn't have it because it allocates memory in a different way inside y_malloc. The new allocation method is better, but has this issue.
Put YSI at the very top of your includes, but below a_samp.


Re: YSI Warning || y_malloc set up via CallLocalFunction - hamzajaved780 - 04.05.2015

Quote:
Originally Posted by Ahmad45123
View Post
Put YSI at the very top of your includes, but below a_samp.
Problem Solved +REP