WPF application and remote control

eric steph 1 Reputation point
2021-03-08T13:38:17.58+00:00

Hello everybody,

I have a very subtle problem. I have a WPF application that works perfectly in Desktop A and in Desktop B. The application runs with .NET 4.6

When I connect to Desktop B via remote desktop to Desktop A, the application works more or less fine but sometimes it goes undetected to zombie mode. One has to basically open the task manager and kill it and open the application again. It goes undetected randomly I cannot say there are specific times or actions that make it do this.

Does anyone have a trick? Are there any remote desktop options that are involved?

I googled the problem but all I see are way bigger problems that people are having with remote desktop, my problem is more subtle.

Thanks

Developer technologies Windows Presentation Foundation
Windows for business Windows Client for IT Pros User experience Remote desktop services and terminal services
Developer technologies XAML
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carl Fan 6,881 Reputation points
    2021-03-09T10:22:41.337+00:00

    Hi,
    It depends to some extent on the application you're developing but in general, I'd say that if your application encounters an unhandled exception, you need to terminate it. WPF application works fine on local machines but not for RDP.
    I consider that you could try to update your video card driver to check. Then disabling hardware accelleration by creating a DWORD registry value at

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

    and then setting it to 1.

    Also to help you better, I suggest that you could post the issue to WPF forum.
    https://learn.microsoft.com/en-us/answers/topics/wpf.html?WT.mc_id=msdnredirect-web-msdn
    Hope this helps and please help to accept as Answer if the response is useful.
    Best Regards,
    Carl

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.