-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes broken cleanup #2
Fixes broken cleanup #2
Conversation
@NathanielACollier Unrelated to this PR (I tried it without) I'm having a garbage collection issue in PowerShell that I haven't been able to resolve despite having tried many things.
Any idea on how to handle this? |
Would you be able to provide powershell code? I can't promise I'd be able to figure it out, but I'm really interested to see powershell code that invokes this library. |
Added you to the repo. Note that it will have to be modified if you don't want to use the preview release of PowerShell. Usually the way I get the GC problem to trigger the fastest is a 20-count loop against https://qwant.com |
I am experiencing the same GC error. |
I think you misspoke? Having it be false should be causing a memory leak, though it can actually experience the same GC issue. |
I may have been unclear. Should be noted that I did not get GC error with debugger attached (in debug build) on 4000 loops, I do get GC error after 20-30 loops on release build without debugger. |
The debugger changes how the call stack is handled, so that's not surprising. |
because when GC triggers safeslisthandle.releasehandle |
I noticed that my cookie jar was not saving, leading me to discover this: stil#15
Apparently, the SafeHandles don't actually fire their Cleanup method when being disposed of. I changed it and recompiled and my cookie jar wrote when disposed, so it seems to be fixed.