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
TODO: Currently FileSystemWatcher for openDialog is not properly disposed when application shutdown
It won't work even if we call openDialog.Dispose(); GC.Collect() also doesn't help.
See gui-cs/Terminal.Gui#1524
To test this: select some .sm2 file and choose open, then wait for a few seconds to see the exception caused due to the FileSystemWatcher still tries to call a callback that access the now null Application.Mainloop.
chaojian-zhang
changed the title
FileSystemWatcher for openDialog is not properly disposed when application shutdown
[TODO] FileSystemWatcher for openDialog is not properly disposed when application shutdown
Mar 4, 2022
Description
TODO: Currently FileSystemWatcher for openDialog is not properly disposed when application shutdown
It won't work even if we call
openDialog.Dispose()
;GC.Collect()
also doesn't help.See gui-cs/Terminal.Gui#1524
To test this: select some .sm2 file and choose open, then wait for a few seconds to see the exception caused due to the
FileSystemWatcher
still tries to call a callback that access the now nullApplication.Mainloop
.Screenshots
Remark
You can't force dispose all instances of a class with reflection;
Also see https://stackoverflow.com/questions/12368/how-to-dispose-a-class-in-net
Per: 2e40a21
The text was updated successfully, but these errors were encountered: