-
As I am not 100% it is an issue or not, I ask in discussions instead of opening an issue for now. I simply created a simple Popup with a static (aka no binding) It work, but monitoring on release build (without hot reload) inside Visual Studio memory use diagnostic chart, I see my memory "climbing" after each click without being G.C. somehow later. You can try my test repo if you don't wan't to code yourself (though it is a bit messy as I iterate testing over and over on this). (click on "Test popup" button to land on PopupTestPage, then click several time in a row on "Fake simple processing" button. You can adjust to number of fake process loop in the Is this an issue, or the expected behavior (or I am doing something wrong in my code) ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Could you do a smaller example (smaller repo) or like CoPilot AI said:
... it will be much easier to test and isolate the problem. |
Beta Was this translation helpful? Give feedback.
-
Here you are : https://github.com/elTRexx/PopupV2TEST |
Beta Was this translation helpful? Give feedback.
-
Thank you for fast reply / fix. It would perfectly make sense for transient classes, but for singletons, isn't actually its purpose to register the events / bindings once in CTOR (like it is done here), and then don't unregister / cleanup, but instead keep and return the only 1 "static" instance of it afterward ? |
Beta Was this translation helpful? Give feedback.
something looks off
@elTRexx can you please a bug with your sample?I was faster and furious, here's the fix: