Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Multi Instance application

Multi Instance application

Scheduled Pinned Locked Moved C#
helpquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    himuskanhere
    wrote on last edited by
    #1

    Hello friends, Can u help me to delay the second instance of application.?? I want my application must be multi instance appliation but if double clicking immediatly second instance should start after some specified delay!! Thanks in advance

    C M T 3 Replies Last reply
    0
    • H himuskanhere

      Hello friends, Can u help me to delay the second instance of application.?? I want my application must be multi instance appliation but if double clicking immediatly second instance should start after some specified delay!! Thanks in advance

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Just search for code to do a single instance app, and instead of closing the second instance, have it wait a while before starting. The only hard part then is working out how long ago the last instance was run so you know if yuo need to wait.

      Christian Graus Driven to the arms of OSX by Vista.

      B 1 Reply Last reply
      0
      • H himuskanhere

        Hello friends, Can u help me to delay the second instance of application.?? I want my application must be multi instance appliation but if double clicking immediatly second instance should start after some specified delay!! Thanks in advance

        M Offline
        M Offline
        musefan
        wrote on last edited by
        #3

        hmmm... not quite sure what you mean. But maybe the first thing your app does is to check if another instance is running (maybe with a loop through processes or something), if it finds an instacne, then insert a delay before moving on Have i misunderstood your requirements? EDIT: I didnt think of the checking how long first app been running as suggested in previous post. Why do you need the delay for anyway? just out of interest

        My opinion is... If someone has already posted an answer, dont post the SAME answer

        1 Reply Last reply
        0
        • C Christian Graus

          Just search for code to do a single instance app, and instead of closing the second instance, have it wait a while before starting. The only hard part then is working out how long ago the last instance was run so you know if yuo need to wait.

          Christian Graus Driven to the arms of OSX by Vista.

          B Offline
          B Offline
          benjymous
          wrote on last edited by
          #4

          Presumably when a new instance starts, rather than creating a lock, it creates a lock with a timer that auto frees itself after X seconds. The second instance would wait till the first instance unlocks, and so on.

          Help me! I'm turning into a grapefruit! Buzzwords!

          1 Reply Last reply
          0
          • H himuskanhere

            Hello friends, Can u help me to delay the second instance of application.?? I want my application must be multi instance appliation but if double clicking immediatly second instance should start after some specified delay!! Thanks in advance

            T Offline
            T Offline
            tasumisra
            wrote on last edited by
            #5

            what abt Thread.sleep();

            vikas da

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups