>I have an application that runs in the background. There is no user intervention via the application. One issue I have is people running the application more than one cause they cannot see it is running. I need to be able to detect the running app without using the Title bar as part of the solution. So I can just ignore someone trying to run it again.
>
>
>Any Ideas? George :)
>
>TIA
>
Ron,
Well,
I am George.< bg >
I really like Ed's suggestion. In fact, I like it better than my Mutex solution. Why? Well, for one, I think it cleans up after itself better than a Mutex. In a development environment, if you create a mutex and run the EXE from within VFP, after you shut the program down, you
have to do some cleaning up in releasing the mutex. If you don't, you have to exit VFP and re-start. So what you have is code that's only necessary for use at design time. From what I can tell from Ed's post, because it relies on PROGRAM(0), it should automatically release itself when the executable exits. Of course, I haven't had a chance to test this, but if this assumption is correct, there's less code for someone to have to maintain.
George
Ubi caritas et amor, deus ibi est