You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a application which needs to be restarted often and rehooked. This all went fine, but after a while the host application (which does all the hooking/injecting) goes into 'OutOfMemory'. I've used ANTS Memory profiler to narrow down the root cause and it seems that IpcServerChannel isn't cleaned up. It occupies a thread and a bunch of other things in memory, eventually leaking into a OutOfMemory exception.
I tried calling IpcServerChannel.StopListening() but this doesn't kill the thread. In the screenshots you can see 1004 ipcServers and 1004 threads being spawned.
Hi,
I'm working on a application which needs to be restarted often and rehooked. This all went fine, but after a while the host application (which does all the hooking/injecting) goes into 'OutOfMemory'. I've used ANTS Memory profiler to narrow down the root cause and it seems that IpcServerChannel isn't cleaned up. It occupies a thread and a bunch of other things in memory, eventually leaking into a OutOfMemory exception.
I tried calling
IpcServerChannel.StopListening()
but this doesn't kill the thread. In the screenshots you can see 1004 ipcServers and 1004 threads being spawned.Object diffs:
https://imgur.com/EACRv0T
Object roots:
https://imgur.com/82FtHoT
The text was updated successfully, but these errors were encountered: