lempamo / ChaosIV

a chaos mod for gta IV
MIT License
7 stars 3 forks source link

Breaking doors causes Access Violation #1

Closed lempamo closed 4 years ago

lempamo commented 4 years ago
2020-05-20 21:22:05 - Error during Tick in script 'ChaosIV.ChaosMain':
                      System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
                         at NativeInvoke.Invoke<int,int,int,bool>(SByte* name, Int32 p1, Int32 p2, Boolean p3)
                         at Scripting.?A0x78c78259.BreakCarDoor(Int32 , Int32 , Boolean )
                         at GTA.value.VehicleDoor.Break()
                         at ChaosIV.ChaosMain.EffectVehicleBreakDoorsPlayer()
                         at ChaosIV.ChaosMain.DeployEffect(Object s, EventArgs e)
                         at GTA.Timer.EachTick(Object sender, EventArgs e)
                         at GTA.Script.DoTick()
                         at GTA.ScriptThread.OnTick()
lempamo commented 4 years ago

fixed by using native functions