Win8.1 will fire unload and load event to the WPF application when we close and reconnect to this machine using RDC from win7 or other OS.

This is a strange issue only in Win8.1.

As we all known, if there is a running application in a machine, there should not be any other behavior against the application when we connect/disconnect/reconnect to this machine by Remote Desktop Connection. However, we found that Win8.1 will fire unload and load events to the WPF application when we close and reconnect to the machine using RDC. And this is an unwanted behavior which may cause error. Here are the stable reproduce steps:

1. Write a WPF application which contains a button and handles the unload and load events of this button.

2. Using RDC to connect to a Win8.1 from Win7 for example.

3. In the remote desktop, run this WPF app.(a load event will be recorded in a.txt).

4. Close the RDC by clicking the 'x'.

5. Connect to this Win8.1 again.

6. You will see the unload and load events have been fired.

If the WPF app runs in Win7 or Win server 2008, those events will not be fired.

So, I think it is a unwanted behavior in Win8.1. Is that a bug in Win8.1 RDP? Or is that a new feature? I'm looking forward the answer.

Thanks,

Peng


  • Edited by JAPCOM923 Tuesday, July 15, 2014 2:19 AM correct the repro steps
July 3rd, 2014 5:24am

Unfortunately, this kb does not work. My issue still exists after installed the Windows8.1-KB2919394-x64.msu.

Anyway, thanks for your help. And if necessary, you could download my test program on https://www.hightail.com/download/ZUczbUpha0Q3N0RvS3NUQw. This program will write an a.txt file in the same path to record the events. So, please skip the warning from your anti-virus software.

Thanks,

Peng


  • Edited by JAPCOM923 Tuesday, July 15, 2014 2:28 AM update the link
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2014 8:01am

bump
April 8th, 2015 12:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics