Best way to cleanly stop a process I started

  • Thread starter Thread starter GrahamS
  • Start date Start date
G

GrahamS

Hi,

Trying to launch a number of processes from a CE 6.0 app. This is really
because CE doesn't support 'services' and I need to create some
'service-type' processes.

No problem to create them, but IF they are created with no console window
(or GUI), how should I cleanly close them again. Obviously I need to shut
them down if my main app needs to stop.

Seems that Kill is the only way ?? - other than writing my own code to
signal the process and tell it to shut down ??.

Am I missing some inter-process mechanism thats already built-in ??.

Thanks

Regards

Graham
 
CE certainly does support services.

If you need to shut them down, you need a comm mechanism. Typically I have
the apps with a worker thread that listens for a named system event. When
you get that event, you then take the steps necessary in the app to shut
down.

Thead.Kill is certainly *not* clean.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
CE certainly does support services.

If you need to shut them down, you need a comm mechanism. Typically I have
the apps with a worker thread that listens for a named system event. When
you get that event, you then take the steps necessary in the app to shut
down.

Thead.Kill is certainly *not* clean.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Chris,

Thats about what I figured - that I would have to write the interaction code
;-)).

Thanks for the input though...

Regards

Graham
 
Chris,

Thats about what I figured - that I would have to write the interaction code
;-)).

Thanks for the input though...

Regards

Graham
 
Back
Top