Results 1 to 5 of 5

Thread: [RESOLVED] Is "kill" synchronous or assynchronous function

  1. #1

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Resolved [RESOLVED] Is "kill" synchronous or assynchronous function

    Is "kill" synchronous or asynchronous function?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Is "kill" synchronous or assynchronous function

    As with all built in functions it's synchronous, it doesn't return until it has done its job or failed to do so (however technically speaking Kill is a statement and not a function).

  3. #3

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Re: Is "kill" synchronous or assynchronous function

    Thank you Joacim.
    If I understood you well, my app will not run nothing more until "kill" ends its "processing" (couldn't find a better word). Is that right?

    By what i saw in MSDN, the kill function/statement doesn't return any value, so I can I know if the file was deleted successfully?

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Is "kill" synchronous or assynchronous function

    You have understood correctly. The Killl statement will raise an error if it fails. You must trap this error.

  5. #5

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Re: Is "kill" synchronous or assynchronous function

    Ok, thank you very much for your quick reply.

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