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)

PB 5.21 win7 32bit
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)