Only one instance of application?

P

PeterB

I am pretty sure I have read that you can only start one instance of a CF
application on PocketPCs. It is also confirmed when I start my application,
hide it and re-start it... the same instance is then started.

However, the Remote Display Control application (v2.03) can be started
several times, and there is one instance started each time you hit that
application icon...

Not that this is very important or critical in any way, I was just hoping
that someone could explain how this works?

regards,

Peter
 
J

Jonathan Wells [msft]

Hi Peter, the .NET Compact Framework contains code that prevents multiple
instances of a .NET Compact Framework-based application from running on the
Pocket PC platform. Multiple instances are not prevented on Windows CE .NET.
To see how to prevent multiple application instances on Windows CE .NET
check out this sample:
http://www.gotdotnet.com/Community/...mpleGuid=9a07ca83-0fd2-44b7-82d0-bd3cfa84e294

HTH
j
--
Jonathan Wells
Product Manager
..NET Compact Framework
Check out the .NET Compact Framework FAQ at:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

PeterB

Hi Jonathan, thanks for your answer!

If I understand you correctly PocketPC application can only be run as single
instances. How come the Remote Display Control atleast seem to open multiple
instances on a PocketPC? If you launch the application several time, one
application icon is displayed is displayed on the menu bar (in today screen)
for each launch. On the other hand, the program is NOT shown in "running
programs" screen.

So how come you can start several instances and why isn't it shown in
"running programs"?

regards,

Peter
 
G

Ginny Caughey [MVP]

Peter,

It's not that PocketPCs can only run a single instance of any app. It's that
..NetCF apps on a PocketPC will only run a single instance because .NetCF is
doing that. (And this is not the case for .NetCF apps running on vanilla
CE.)

The running programs lists really shows running top windows, not running
processes.
 

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