Application.RequestStop() throws ArgumentException "the specified view is not part of the hierarchy of this view"
See original GitHub issueHey, i’m using .net 6 on windows, doing
Application.RequestStop();
or
top.Running = false;
results in an ArgumentException, i.e. VS debugger popping up. am I doing something wrong? I’ve used the StandaloneExample as guidance and don’t do anything funny.
this is the stacktrace:
at Terminal.Gui.View.SetFocus(View view)
at Terminal.Gui.View.FocusFirst()
at Terminal.Gui.View.FocusNext()
at Terminal.Gui.View.set_CanFocus(Boolean value)
at Terminal.Gui.View.Remove(View view)
at Terminal.Gui.View.Dispose(Boolean disposing)
at Terminal.Gui.View.Dispose(Boolean disposing)
at Terminal.Gui.View.Dispose(Boolean disposing)
at Terminal.Gui.Responder.Dispose()
at Terminal.Gui.Application.RunState.Dispose(Boolean disposing)
at Terminal.Gui.Application.RunState.Dispose()
at Terminal.Gui.Application.End(RunState runState)
at Terminal.Gui.Application.Run(Toplevel view, Func`2 errorHandler)
at Terminal.Gui.Application.Run(Func`2 errorHandler)
at Program.<Main>$(String[] args) in C:\Users\AGayk\source\repos\AudioControlApp\AudioControlApp\Program.cs:line 36
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Application.RequestStop() throws ArgumentException "the ...
Application.RequestStop() throws ArgumentException "the specified view is not part of the hierarchy of this view" #1558.
Read more >T
Gui app that creates a window with a frame and title with ... Gets all the Mdi childes which represent all the not...
Read more >presenting whose view is not in the window hierarchy ...
This method is called regardless of whether the view hierarchy was loaded from a nib file or created programmatically in the loadView() method....
Read more >Terminal.Gui API Overview
Gui application are implemented as Views. Views are self-contained objects that take care of displaying themselves, can receive keyboard and mouse input and ......
Read more >platform/frameworks/base
View, int, int, int, int); method public static android.app. ... Closeable { method public void close() throws java.io.IOException; method public void ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, sorry, somehow the notifications for your questions slipped through - i can’t repro the issue with current nuget (1.7.2)/net6/StandaloneExample… gonna try it on the initially erroring one later (i think it’s on another pc)…
Didn’t closed. Closing now…