GetProcessesByName for .NET CF??

J

Jasmine

After several tries of my AP on PPC, I have noticed a minor
glitch with it. I've noticed that my Application could be
opened several time simultaneously. Even though it's not
creating any errors so far, however, I'm afraid it might
be in the future. I've done some search and
found "GetProcessesByName", it will give you a list of
process names that are running on your computer now, which
is pretty helpful. However, the bad news is that it is not
supported by .NET CF. Does anybody know any other object
that does the same thing but also works on PPC???

Thanks in Advance!!

P.s. Before using the GetProcessesByName, I have to import
System.Diagnostics.Process, but Diagnostics.Process is not
supported in .NET CF.
 
C

Chris Tacke, eMVP

On the PPC you can't have multiple instances off your app running without
some major explicit shenanigans. The CF enforces it. On an other device
the solution is to use a Mutex to prevent any instance past the first from
starting.

-Chris
 

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