Cleaning up the Local Services

1317
2
04-16-2013 07:49 AM
Labels (1)
GeorgeFaraj
Occasional Contributor III
Our GIS viewer is part of a larger application. The user will invoke it using a button on the app, and later will close the GIS viewer and get back to work on something else. I've noticed that a lot of processes remain running in the task manager, namely RuntimeLocalServer.exe. I'm looking for the correct way to clean up local services when I close the viewer dialog.
0 Kudos
2 Replies
BledarBirbo1
Occasional Contributor

Hi.

Did you ever find a solution to this ?

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Which ArcGIS Runtime SDK are you using? Note ArcGIS Runtime SDK for WPF is now retired. Please raise questions and issues for the currently supported SDK for .NET in ArcGIS Runtime SDK for .NET

The RuntimeLocalServer.exe processes should all shut down when your app closes. If you are still seeing these processes running after your app has closed that's potentially a bug. Optionally you can call LocalServer.Shutdown/Stop, or for finer grained control even iterate the local services and stop on an per-service basis. Again those options should ensure the RuntimeLocalServer.exe processes shutdown before your app closes. If you are running ArcGIS for Desktop and performing geoprocessing with 'background geoprocessing' enabled then you may see one or more processes with the same name launched by ArcGIS for Desktop. Those can be ignored.

 

Cheers

Mike

0 Kudos