Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion dialogs launched from hidden console window are inaccessible #643

Closed
Maximus5 opened this issue Jul 31, 2015 · 10 comments
Closed

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 643

OS version: Win7
ConEmu version: 120711 x64

If a console mode application shows a graphical window, like an assertion dialog, there
is no way to interact with it. Showing the hidden console window does not make the
assertion dialog appear.

Repro:
Create a simple .NET console mode program with Trace.Assert(false) statement in main.
Run it from a console window in ConEmu. I cannot find a way to make it visible. 

Generally speaking, this affects all GUI windows (winforms/wpf) that have a console
window as the parent. It would be nice if it were possible to detect child graphical
windows and make them visible/foreground.

Reported by oising on 2012-07-16 04:27:40

@Maximus5
Copy link
Owner Author

Is "Inject ConWmuHk" checked?
Attach sample program illustrating the problem.

Reported by ConEmu.Maximus5 on 2012-07-16 06:27:48

@Maximus5
Copy link
Owner Author

Sample program works; Assertion dialog appears at the front of ConEmu.


Reported by ConEmu.Maximus5 on 2012-07-16 09:23:39

@Maximus5
Copy link
Owner Author

Hmm... I'm using powershell 3.0 - I don't think that should affect the behaviour. Let
me try to isolate the problem and post a repro for you.

Reported by oising on 2012-07-16 13:41:44

@Maximus5
Copy link
Owner Author

I am running into this problem too - attached a repro script.

What's interesting is that running Out-GridView first prevents the problem (although
the form still pops up behind the ConEmu window):

'test' | Out-GridView
.\Show-HelloWorldForm.ps1


Reported by ajansveld on 2012-07-24 15:16:44


- _Attachment: [Show-HelloWorldForm.ps1](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-643/comment-4/Show-HelloWorldForm.ps1)_

@Maximus5
Copy link
Owner Author

Please, in details.

1. How powershell is started? ConEmu AsAdmin? powershell AsAdmin?

2. You provide two lines of code: "'test' ..."
This means, typing them in prompt and pressing Enter (twice)?

3. Before execution lines make ConEmu transparent (50% e.g.), execute lines, make whole
screen screenshot after each line

Reported by ConEmu.Maximus5 on 2012-07-24 16:18:34

@Maximus5
Copy link
Owner Author

1. Running PowerShell v2 or v3 as a regular user.
2. Yes, the commands are typed at the prompt followed by Enter
3. Attaching two screenshots: 
   - Capture1.jpg shows that running the repro script does not show the form
   - Capture2.jpg shows that running the repro script after using Out-GridView does
show the form

Reported by ajansveld on 2012-07-25 00:34:45


- _Attachment: [Capture1.jpg](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-643/comment-6/Capture1.jpg)_ - _Attachment: [Capture2.jpg](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-643/comment-6/Capture2.jpg)_

@Maximus5
Copy link
Owner Author

Additional info: this happens with ConEmuHk either enabled or disabled.

Reported by ajansveld on 2012-07-25 01:08:31

@Maximus5
Copy link
Owner Author

Check 120727

Reported by ConEmu.Maximus5 on 2012-07-27 07:36:50

@Maximus5
Copy link
Owner Author

Version 120727b fixed this for me - thanks again!

Reported by ajansveld on 2012-07-31 12:45:50

@Maximus5
Copy link
Owner Author

Reported by ConEmu.Maximus5 on 2013-10-15 19:29:57

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant