Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Share Your Creations
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.


prevent running same app twice


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2008, 03:01 PM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default prevent running same app twice

Hi,

I now, I now... They told me...
Net prevent you start your app twice at same time... but, I mentioned it before,
I get started my GPS-app in NET1 twice without nowing it, on mobile 3SE.
Therefore, I made a little exe that I start with the Shell() function as first.
Did the job very well, never got a doubble start again.
The rest of time, I used another pocket mobile5, and I removed my snippet, never get a doubble start on this one.

These days, I load my old mobile 3SE with NET2 and the message extension to see how fast it was, worked even faster as the new ones with the opticompiles, VERY SATISFYING (keep up the good work Erel).
Now again, I get trouble with GPS-app starting twice the same, AND IN NET2, so, must be something in the pocket.

It can not be that I am the only in the world with this malfunction.
Therefore I use again that little exe that I start with the Shell() function as first, to prevent a doubble start. And again, IT WORKS...

see atachement.

'WFexist.exe' , replace 'exist' with appname to check i.e. 'WFMyApp.exe'
and place it near your app to check (on the device only).

'----------------------------------
Sub App_Start 'POINT to start

If CPPC = TRUE Then
Shell ("WFSpeedCop.exe", "") 'checking allready running app
End If
'---
'---
'----------------------------------

Put claude Belgium
Attached Files
File Type: zip WFexist.zip (1.0 KB, 22 views)

Last edited by Put Claude : 02-03-2008 at 03:05 PM. Reason: forgot something
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
running an other applikation Georg Questions & Help Needed 2 04-29-2008 06:01 AM
Is program XYZ running? HARRY Questions & Help Needed 10 01-12-2008 05:06 PM
Running other apps Ianmac Questions & Help Needed 2 12-16-2007 02:30 PM
Running on another desktop vinians Questions & Help Needed 1 08-29-2007 09:03 PM
running in background tvrman Questions & Help Needed 15 08-24-2007 03:37 AM


All times are GMT. The time now is 06:13 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0