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

Add ignore Exceptions to ProcessCallHandler in RPC Buffer #58

Closed 1fabi0 closed 3 years ago

1fabi0 commented 3 years ago

Because as we used the RPC Buffers we had some exceptions wich let to a crash of our application, with message

System.ObjectDisposedException
Cannot access a disposed object.
Object name: 'RpcBuffer'. 

I decided to investigate this application and found out that Exceptions on sending Response messages are not handled. So i decided to fix this and add a in my mind proper handling of possible exceptions, by ignoring them. This will hopefully help also others to increase the stability using this Library. Feel free to ask any questions or to add comments to this.

1fabi0 commented 3 years ago

@spazzarama can you please review because this improves stability of projects using this library