Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  App crash after RemoveFromSolver called [4.0.2 and older]
#4
josemendez,
Am I understand you right that if Oni.UnpinMemory called twice this leads to crash?

Is there a way to debug it. For example to get Error when it is called twice or something like this?
Because I get another crash, less often. And would be great to have some way to get assert or error in case if memory get corrupted

Update:
I added this code to UnpinMemory function. Will try to locale the problem
Code:
        public static void UnpinMemory(GCHandle handle)
{
  if (handle.IsAllocated && _AllUnlinnedHandles.Contains(handle))
  {
     Debug.LogError("Trying to UnpinMemory for already unpinned handler");
     return;
  }
 
  if (handle.IsAllocated)
  {
     _AllUnlinnedHandles.Add(handle);
     
     handle.Free();
  }
}
Reply


Messages In This Thread
RE: App crash after RemoveFromSolver called [4.0.2 and older] - by mmortall - 26-02-2019, 04:45 PM