mutex

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aleks Kleyn

    #1

    mutex

    I designed vb application which I expected to run all time. to make sure
    that application restarts when OS (assume win2000) reboots, I put this app
    to statup folder. However I put attention that 2 or 3 copies of this app may
    run at the time. To make sure that only one copy of app runs at the time I
    added mutex class to block start of extra copy. However it does not help.
    Probably different users during logon starts one more copy and mutex cannot
    catch it. how I can prevent start of second copy?

    Thank you, Aleks

  • Robinson

    #2
    Re: mutex

    Anyway, your project properties has an item in "Applicatio n", called "Make
    single instance application".


    Robinson.


    "Aleks Kleyn" <AleksKleyn@Opt Online.netwrote in message
    news:AFD343C1-54A4-4FDB-A4A0-F5EA6C54DCDB@mi crosoft.com...
    >I designed vb application which I expected to run all time. to make sure
    >that application restarts when OS (assume win2000) reboots, I put this app
    >to statup folder. However I put attention that 2 or 3 copies of this app
    >may run at the time. To make sure that only one copy of app runs at the
    >time I added mutex class to block start of extra copy. However it does not
    >help. Probably different users during logon starts one more copy and mutex
    >cannot catch it. how I can prevent start of second copy?
    >
    Thank you, Aleks

    Comment

    • Aleks Kleyn

      #3
      Re: mutex

      I added this option. However I saw today 2 copies of application started by
      differenent users.
      Aleks
      "Robinson" <toomuchspamhas passed@myinboxt oomuchtoooften. comwrote in
      message news:ekehdo$kc0 $1$8300dec7@new s.demon.co.uk.. .
      Anyway, your project properties has an item in "Applicatio n", called "Make
      single instance application".
      >
      >
      Robinson.
      >

      Comment

      • Tom Shelton

        #4
        Re: mutex

        On 2006-12-01, Aleks Kleyn <AleksKleyn@Opt Online.netwrote :
        I added this option. However I saw today 2 copies of application started by
        differenent users.
        Aleks
        "Robinson" <toomuchspamhas passed@myinboxt oomuchtoooften. comwrote in
        message news:ekehdo$kc0 $1$8300dec7@new s.demon.co.uk.. .
        >Anyway, your project properties has an item in "Applicatio n", called "Make
        >single instance application".
        >>
        >>
        >Robinson.
        >>
        >
        Yep. That can happen... Mutex's are per user session by default. Try
        starting your mutex name with:

        Global\

        That should tell the mutex to be available in all sessions.

        --
        Tom Shelton

        Comment

        • Aleks Kleyn

          #5
          Re: mutex

          I put this property. However different user making logon to the system can
          start this application.
          Aleks

          Comment

          Working...