Is it safe to use CopyFile() in Threads?

Just starting out? Need help? Post your questions and find answers here.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Is it safe to use CopyFile() in Threads?

Post by davido »

Is it safe to use CopyFile() in Threads?
DE AA EB
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Is it safe to use CopyFile() in Threads?

Post by TI-994A »

davido wrote:Is it safe to use CopyFile() in Threads?
It should be.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Is it safe to use CopyFile() in Threads?

Post by davido »

@TI-994A,
Thank you for you help. :D
I feel confident to proceed, now.
DE AA EB
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Is it safe to use CopyFile() in Threads?

Post by TI-994A »

davido wrote:
TI-994A wrote:
davido wrote:Is it safe to use CopyFile() in Threads?
It should be.
@TI-994A,
Thank you for you help. :D
I feel confident to proceed, now.
Couldn't help but sense a hint of sarcasm there. :lol:

To expand on my earlier answer, having used the CopyFile() function in threads in Windows apps, I am sure that it works. However, on the matter of safety, I can only attest to the fact that it has worked without issue in my applications; but only the team could say for sure if it is a recommended or safe practice.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Is it safe to use CopyFile() in Threads?

Post by Fred »

All commands should be thread compliant with ThreadSafe switch on if not noted otherwise in the doc. If not, feel free to file a bug report
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Is it safe to use CopyFile() in Threads?

Post by davido »

Hi TI-994A,
Sorry. Sarcasm has no place in my replies. It was not intended.
You have been very helpful to me in the past so I was grateful for your positive comment.

@Fred, Thank you.
DE AA EB
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Is it safe to use CopyFile() in Threads?

Post by TI-994A »

davido wrote:Sarcasm has no place in my replies...
My overly brief response should have warranted some. :lol:

Thank you for saying so.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Post Reply