Best way to cleanly stop a process I started

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
 
C

Chris Tacke, eMVP

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
 
C

Chris Tacke, eMVP

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
 
G

GrahamS

Chris,

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

Thanks for the input though...

Regards

Graham
 
G

GrahamS

Chris,

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

Thanks for the input though...

Regards

Graham
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top