Skip to content
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

Memory leak related to Castle ProxyGenerator #163

Open
rnoecker opened this issue Jul 9, 2024 · 0 comments
Open

Memory leak related to Castle ProxyGenerator #163

rnoecker opened this issue Jul 9, 2024 · 0 comments

Comments

@rnoecker
Copy link

rnoecker commented Jul 9, 2024

I noticed a significant memory leak in my application which I eventually tracked down to this library. In dotMemory it just shows unmanaged memory increasing over time. My application creates instances of objects (many over time, but only one at a time) that use this library to read a configuration file.

After integrating the code into my project I was able to determine it was related to the ProxyGenerator. I made it static after coming across the following article. I'm not sure if there are any side effects to this, but it seems to work, and I am using my own version of the library for now.

https://www.asystad.net/memory-leak-with-castle-core-proxygenerator/

rnoecker@5f22b70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant