grpc_csharp_ext.x86.dll not unloaded when appdomain is unloaded?

437 views
Skip to first unread message

j...@halo3.net

unread,
Mar 2, 2020, 7:56:22 AM3/2/20
to grpc.io
I am looking for some help with an application that uses some grpc services (google pubsub) in a separate app domain so it can be updated without needing to shut down the whole process. The issue I have is that once loaded, it seems that the grpc_csharp_ext.x86.dll is never unloaded when the application domain unloads? The symptom is that when I try and remove the directory containing the code, the operation fails saying that the grpc_csharp_ext.x86.dll is still in use and cannot be deleted.

Is there any solution to this problem or will I be forced to use multiple processes vs. multiple app domains?

-jr

Jan Tattermusch

unread,
Apr 8, 2020, 11:37:54 AM4/8/20
to grpc.io
I don't think there's currently any workaround. the grpc_csharp_ext.x86.dll is a native library (not C# assembly) so once you load it, you cannot unload it the way you'd do it for an appDomain normally.
Reply all
Reply to author
Forward
0 new messages