Invalid memory access.
#1

Hi. Do you know what "Run time error 5: "Invalid memory access"" can be due? I'm getting this error randomly. A reconnection from the player seems to do the job until the next occurence.
The concerned code is some data manipulation like:
PHP код:
BulletProof_Vest[playerid][slotid][bvdArmor] = armour;
BulletProof_Vest[playerid][slotid][bvdVestType] = vest_type
Nothing impressive.
The backtrace returned by crashdetect prove it doesn't use that much functions (3 max) until the error.

It happened recently on the same code but out of this function. I made those changements and it seems don't generate anymore run time error for this part.
PHP код:
// BulletProof_Vest[receiverid][new_slotid][bvdArmor] = BulletProof_Vest[playerid][slotselected][bvdArmor];
// BulletProof_Vest[receiverid][new_slotid][bvdVestType] = BulletProof_Vest[playerid][slotselected][bvdVestType];
BulletProof_Vest[receiverid][new_slotid] = BulletProof_Vest[playerid][slotselected]; 
Reply


Messages In This Thread
Invalid memory access. - by Dayrion - 06.05.2018, 17:37
Re: Invalid memory access. - by Dayrion - 07.05.2018, 12:41
Re: Invalid memory access. - by jasperschellekens - 07.05.2018, 12:43
Re: Invalid memory access. - by Dayrion - 07.05.2018, 13:22
Re: Invalid memory access. - by Dayrion - 08.05.2018, 11:16
Re: Invalid memory access. - by iKarim - 08.05.2018, 11:42
Re: Invalid memory access. - by Dayrion - 08.05.2018, 12:02
Re: Invalid memory access. - by Dayrion - 09.05.2018, 10:44
Re: Invalid memory access. - by Dayrion - 10.05.2018, 08:53

Forum Jump:


Users browsing this thread: 1 Guest(s)