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 with DWV and trying to dynamically switch between multiple File[] sets. Initially, I tried directly calling App.loadFiles with a new File[], but the view didn’t update as expected.
Currently, my workaround is to create a new App instance each time and then call App.loadFiles, which successfully updates the view. However, with this approach, memory usage keeps increasing every time I switch files, and it doesn’t get freed up when my Vue component is destroyed. Additionally, I couldn’t find a method to properly destroy the App instance to free up memory.
Could you please guide me on the correct approach to achieve this?
Thanks so much for your help!
The text was updated successfully, but these errors were encountered:
Hi, this is a tricky problem. I would go for what you are doing currently, creating a new app for new files. Now regarding freeing memory, I haven't looked at it for some time. I managed to free some by deleting the pixel data buffer (see dicomBufferToView.js#L314), not sure if this could be added as a method for the dataController (and app)...
Hi @ivmartel
I’m working with DWV and trying to dynamically switch between multiple File[] sets. Initially, I tried directly calling App.loadFiles with a new File[], but the view didn’t update as expected.
Currently, my workaround is to create a new App instance each time and then call App.loadFiles, which successfully updates the view. However, with this approach, memory usage keeps increasing every time I switch files, and it doesn’t get freed up when my Vue component is destroyed. Additionally, I couldn’t find a method to properly destroy the App instance to free up memory.
Could you please guide me on the correct approach to achieve this?
Thanks so much for your help!
The text was updated successfully, but these errors were encountered: