re-launching application in VB.NET compact framework

G

Guest

Hi Everybody!!!

Does anybody know how I can launch a second instance of my application
in Pocket PC or Windows CE?? or if there is an event or something that I
could use when an application is re-launched????

I created an application that must do certain tasks everytime it is
launched, and stay resident in order to process calls from the local pocket
Internet explorer.

The problem that I currently have is that once the application is
launched, Microsoft Pocket PC does not launch a second instance. The only way
I have been able to achive this is when I put the first instance as
non-responsive.

Any help is greatelly appreicated!!!!

Tarh ik
 
D

David McNamee

Tarh ik said:
Does anybody know how I can launch a second instance of my application
in Pocket PC or Windows CE?? or if there is an event or something that I
could use when an application is re-launched????

The Compact Framework does not permit two instances of the same application
to be running at once. This is to help preserve memory on the device. See
Alex Feinman's post for details on what happens when your app launches here:
http://blog.opennetcf.org/afeinman/PermaLink.aspx?guid=EC034858-E071-4DAA-B1BE-0323B7F54B11
I created an application that must do certain tasks everytime it is
launched, and stay resident in order to process calls from the local
pocket
Internet explorer.

How are you getting Pocket IE to call a Compact Framework application?
 
P

Paul G. Tobey [eMVP]

Not so far as I know (other than making a copy of the EXE, maybe, and
launching that). Why would you want to launch another instance? Why not
just command the current instance to do whatever you need done?

Paul T.
 
G

Guest

Hi David!!!

Thanks for the link!!! It has a good point of view about the problem.
I'm not exactly sure about how to proceed, though. Changing the public name
of the application at run-time sounds like changing the transmission oil
while driving. I'm kind of a newbie in this compact framework technology.

About your question in regards of how I am calling pocket IE, I'm using
TCP/IP sockets.

Thanks!!!

Tarh ik
 
G

Guest

Hi Paul!!!

Thanks for your info. I'm affraid that I need to detect when the
application has been re-launched, and do something about it.

Best Regards,

Manuel
 

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