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. How can i delay a set of instructions

How can i delay a set of instructions

Scheduled Pinned Locked Moved C#
questioncsharphelp
4 Posts 3 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.
  • P Offline
    P Offline
    pcaeiro
    wrote on last edited by
    #1

    Hello, I´m writing a program that runs some gwak scripts. The problem is that before this process ends, the aplication continues to execute others C# instructions, and obviously it blows the all thing. My question is how can i delay the execution of the instructions until the process of runing the scripts ends?

    C R 2 Replies Last reply
    0
    • P pcaeiro

      Hello, I´m writing a program that runs some gwak scripts. The problem is that before this process ends, the aplication continues to execute others C# instructions, and obviously it blows the all thing. My question is how can i delay the execution of the instructions until the process of runing the scripts ends?

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

      If you're running a script with Process.Start, you can get back the process that was started, and wait for it to end.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • P pcaeiro

        Hello, I´m writing a program that runs some gwak scripts. The problem is that before this process ends, the aplication continues to execute others C# instructions, and obviously it blows the all thing. My question is how can i delay the execution of the instructions until the process of runing the scripts ends?

        R Offline
        R Offline
        Ravenet
        wrote on last edited by
        #3

        Yes are you trying to do action with process object or thread? if you done like that we can use th waitforhandle ,etc.. http://msdn2.microsoft.com/en-us/library/aa645740(VS.71).aspx[^] thanks

        Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com

        P 1 Reply Last reply
        0
        • R Ravenet

          Yes are you trying to do action with process object or thread? if you done like that we can use th waitforhandle ,etc.. http://msdn2.microsoft.com/en-us/library/aa645740(VS.71).aspx[^] thanks

          Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com

          P Offline
          P Offline
          pcaeiro
          wrote on last edited by
          #4

          I´m working with a process, but the set of instructions i need to delay are not part of the process, so i tinck that i can do it with a thread. Tanck you for your help the link was very helpfull. :)

          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