RE: Open running processes



[DeRRudi]
| I have a programm. In this program i've made the restriction that only
| one instance can run at the time. (done with mutex).
| Now i'd like it to open the running (make visible) instance when
| someone want's to open it a second time.
| Does anybody know how to do this? I hope you all understand what i
| mean. My English isn't to good...
|
| Greetz Rudi

Rudi; you're going to have to give some more information..
It's clear that you're on Windows (because of the Mutex) but you
don't say what form your program takes: is it a console app?
something with a visible window? something which runs in the
systray? Is it done using wxPython? PyQT? Tkinter? Something else?

Assuming it's a program with a window, there are several options
open to you (as I think I mentioned when you asked this question
last week). Unless someone has a ready-made solution they're ready
to post, a fair amount would depend on the nature of your program,
and the amount you know already or are prepared to learn about how
Windows apps work.

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
.



Relevant Pages

  • Re: WaitForSingleObject() will not deadlock
    ... And in what way am I wrong about Windows mutexes? ... expectations would violate the *documented* mutex behavior). ... building only experimental systems (my first synchronization system was ...
    (microsoft.public.vc.mfc)
  • Re: Why does Microsoft never document threading right?
    ... which is a fast mutex (and has ... CRITICAL_SECTION structure is implemented internally on Windows. ... object does not allow only one thread at time to execute the same code. ... It protects data, not code. ...
    (comp.programming.threads)
  • Win32 Thread Interleaving
    ... Both threads uses same mutex. ... Now problem we are facing is, in windows XP hyper threaded processor, ... sometimes a thread runs for long time compare ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Win32 Thread Interleaving
    ... Both threads uses same mutex. ... Now problem we are facing is, in windows XP hyper threaded processor, ... threads get the mutexes in just a few milliseconds and never had any problem ... with thread interleaving, threads releases after few milliseconds and other ...
    (microsoft.public.win32.programmer.kernel)
  • RE: Odd behaviour of os module with a Win2k shared directory
    ... | C:\Program files\ on a Windows 2000 machine, called 'Nom'. ... anti-virus service working around the clock, around the globe, visit: ...
    (comp.lang.python)