question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application.RequestStop() throws ArgumentException "the specified view is not part of the hierarchy of this view"

See original GitHub issue

Hey, 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:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
AdmiralSnydercommented, Aug 17, 2022

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)…

0reactions
BDispcommented, Aug 4, 2022

Closing as not-repo.

Didn’t closed. Closing now…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found