C#C
C#3y ago
8 replies
Delta 2.1

I've loaded CoreClr from hostFxr and it looks like the garbage Collector is not doing his job...

I'm trying to build a safe interop with Rust and C#, And I wanted SafeHandle to manage native rust object in C#, but DestroyHandle() is never called (while all references to this object are out of scope). so I tried to make a basic objet with a finalizer (inheriting CriticalFinalizerObject) and this finalizer is never called too...

My entry point is an unmanagedMethod, and CoreClr is loaded with the netCoreHost rust crate.
Was this page helpful?