|
-
Dec 6th, 2007, 05:29 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Is "kill" synchronous or assynchronous function
Is "kill" synchronous or asynchronous function?
-
Dec 6th, 2007, 05:55 AM
#2
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).
-
Dec 6th, 2007, 06:15 AM
#3
Thread Starter
Hyperactive Member
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?
-
Dec 6th, 2007, 06:22 AM
#4
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.
-
Dec 6th, 2007, 06:26 AM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|