CopyFile Bug PB5.21LTS(Solved)

Just starting out? Need help? Post your questions and find answers here.
User avatar
leonhardt
Enthusiast
Enthusiast
Posts: 220
Joined: Wed Dec 23, 2009 3:26 pm

CopyFile Bug PB5.21LTS(Solved)

Post by leonhardt »

create some file such as 1.txt

Code: Select all

Procedure foo(p)
  CopyFile("c:\1.txt","c:\2.txt")
EndProcedure
;CopyFile("c:\1.txt","c:\2.txt") this line works,but the thread not works
CreateThread(@foo(),0)
CopyFile can not be used in thread? not mentioned in help file. :(
PB 5.21 win7 32bit
Last edited by leonhardt on Tue Dec 17, 2013 2:43 pm, edited 1 time in total.
poor English...

PureBasic & Delphi & VBA
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Re: CopyFile Bug PB5.21LTS

Post by KJ67 »

With a WaitThread() in there to it seems to work for me.
The best preparation for tomorrow is doing your best today.
Post Reply