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

Resetting Remote Desktop Connection Unlinks Map Artifacts #66

Closed
curob opened this issue Aug 30, 2017 · 1 comment
Closed

Resetting Remote Desktop Connection Unlinks Map Artifacts #66

curob opened this issue Aug 30, 2017 · 1 comment

Comments

@curob
Copy link

curob commented Aug 30, 2017

I am using the WPF version of the GMap.Net nuget package (v 1.7.5) and am seeing a problem when I run my C# application on a computer that I connect to via Remote Desktop. This same issue I can see if I run the WPF demo application available here on GitHub.

The reproducer is as follows:

  1. Build the WPF example provided in this repository.
  2. Copy the executable and required binaries onto a machine that is connected to via Remote Desktop. (Or build local on that machine. The point is that the user needs to be controlling the GUI through Remote Desktop)
  3. Add some markers to the map. Scroll the map, zoom, etc. (Everything will be fantastic.)
  4. With the demo application still running, close the Remote Desktop connection.
  5. Reconnect the remote desktop connection.
  6. The demo application will still be running but all of the markers will either: (a) not be visible anymore or (b) when the map is scrolled, zoomed, etc. the markers will not move with the map.

As far as I can tell, the only way to fix the issue is to restart the application. This is a major issue for a project that I am working on as the users primarily use remote desktop for accessing machines that run our application.

@curob
Copy link
Author

curob commented Aug 30, 2017

Some updates:
My work around attempts for this are as follows (both are really ugly):

  • (FAILED ATTEMPT) Add a GUI button to "re sync" the map artifacts. When it is pressed I clear all markers and re-add them.
  • (Success) Add a GUI button to "re sync" the map artifacts. When it is pressed I replace the GMapControl instance in question with a new one and set all of its properties to the same as the previous one.

The fact that the first workaround attempt did not work indicates that something in the GMapControl is getting corrupted as just "kicking" the map with new markers had no impact.

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

No branches or pull requests

2 participants