Runtime: Console.Beep() does not works under RDP

Created on 29 Sep 2019  路  12Comments  路  Source: dotnet/runtime

Console.Beep() does not works under RDP

Example:
Console.Beep();

But it works if called with arguments.
Example:
Console.Beep(500, 300);

How to reproduce

Both client and server: Windows 10 x64 1903 Build 18990
Microsoft Remote Desktop from Store: https://www.microsoft.com/store/productId/9WZDNCRFJ3PS

area-System.Console bug

All 12 comments

If there's an issue here (which seems strange, but I've not tried it), it would seem to be with Windows, rather than with .NET. Both overloads just delegate to the same Win32 function via the same DllImport:
https://github.com/dotnet/corefx/blob/7e9a177824cbefaee8985a9b517ebb0ea2e17a81/src/System.Console/src/System/ConsolePal.Windows.cs#L648

What does Beep(800, 200) produce?

I am not joking.
I recorded HD video for you. https://1drv.ms/u/s!AvU-sf3z4m8qk-oLkYwB6ou2eO5Arw?e=hqfKwV
You can find code from video here
https://github.com/Roman-Blinkov/Beep

What does Beep(800, 200) produce?

@danmosemsft nothing! There no sound!

Update: I updated GitHub repository with Console.Beep(800, 200);

This works

Console.Beep(800, 270);

This not works

Console.Beep(800, 269);

Have you tried just writing a basic C/C++ app that just calls Beep from kernel32?

I wrote after you asked.

Not works

Beep(800, 200);
std::cout << '\a';
std::cout << '\7';

Works

Beep(800, 270);

How to transfer issue to correct bug tracker?

@Roman-Blinkov I believe you use the Feedback Hub tool (at least in Windows 10) and choose the category "Developer Platform"

I'm going to close this now but please do post back if you get a resolution.

Although @stephentoub perhaps we should change to (800, 270) ..

@Roman-Blinkov also if you have a support contract then you can report it through there.

perhaps we should change to (800, 270)

You asked @stephentoub but here my opinion:
I think no, because such change can break something much more important than sound in RDP.

Yesterday I submitted issue to Feedback Hub as you recommended.
Thank you!
Have a good day!

Was this page helpful?
0 / 5 - 0 ratings