justinstenning / SharedMemory

C# shared memory classes for sharing data between processes (Array, Buffer and Circular Buffer)
https://www.nuget.org/packages/SharedMemory
Other
566 stars 118 forks source link

Fix dispose while receive or send is in progress #59

Closed Christian-Schl closed 2 years ago

Christian-Schl commented 3 years ago

Problem If the dispose is called while the Buffer still progress request this will case error like NullPointerException, AccessViolationException.

Solution The ManagedResource are dispose after the request is process

justinstenning commented 2 years ago

The conflicts have been fixed and these changes merged in