>>The mutex is the most complex, but also the most reliable in terms of making the determination. Unfortunately, if the code to release the mutex (which is in shutdown) doesn't execute, the mutex isn't released. This can happen if VFP generates a 0xC0000005 error (GPFs). Further, this can and does happen if VFP 6.0 without SP3 and DCOM95 (under Win95) isn't installed with top-level type application (_SCREEN.Visible = .F.).
>>
>>hth,
>
>A mutex can be created without an owner:
This is correct.
>Each process get a Handle to the mutex, that the system close when the process terminate or by CloseHandle(), so there is no need to call ReleaseHandle by Any instance of the application.
If, however, the mutex isn't released (via WaitForSingleObject(), ReleaseMutex(), and CloseHandle()) when an application shuts down, any subsequent attempts to to run the application will fail if the mutex is un-owned, unless the system is re-started.
George
Ubi caritas et amor, deus ibi est