Closed syntroniks closed 5 years ago
I modified GetDevice
so it would only call PTOpen
(not construct and return a new Device
). The heap corruption still exists.
I ended up modifying some of the Heap* types to dispose differently. Seems to work -- PR incoming.
I was having the same issue, incorporating the pull request into my project did correct it.
Attempting managed execution inside OS Loader lock.
APIFactory.GetAPI(FileName) Any help with the above tried disabling loader lock witch throws a debugging fault
@Tremo1984 That looks like a separate issue. Could you create a separate issue to track what you're seeing?
Sorry about my delayed response. I have experienced this myself and found the issue. I will release a new version to correct it in a few days.
I checked in a fix for this and rebuilt the package. Update your package in Nuget and verify this solves the issue.
👍 Solves the issue, things are working very well now. TY
Something is causing heap corruption. I tested this by adding extra calls to hJ2534MessageArray.ToMessageArray. Calling this function more often resulted in a heap corruption code sooner.
Triggering garbage collection makes this happen VERY fast.
Minimal example with GC: