CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: process

  1. #1
    Join Date
    Jul 2001
    Posts
    430

    process

    problem:

    start a process and wait for its return value to see if the process starts successfully. But for some reason, the value is not returned within 30 seconds.

    what I want is

    if it goes over 30 seconds, stop the process.

    How to check time processing time?

    please tell me how to do it.


    thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: process

    Quote Originally Posted by lindawqu
    But for some reason, the value is not returned within 30 seconds
    How do you return the value? its a little difficult to understand your question. Please tell us what exactly are you doing or post some code.
    Last edited by jhammer; October 5th, 2005 at 04:00 PM.

  3. #3
    Join Date
    Jul 2001
    Posts
    430

    Re: process

    create a method like

    private bool myProcess()
    {
    process.start(.....) //for some reasom, it processes over 30 secends
    return true;

    }

  4. #4
    Join Date
    Apr 2005
    Location
    Norway
    Posts
    3,934

    Re: process

    It's not easy to find errors in pseudo code. Could you post a bit more of the code? How do you initialize your 'process' variable?

    - petter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured