Page 1 of 1

revCopyFile Problems

Posted: Mon Dec 27, 2010 6:53 am
by interactbooks
Using revCopyFile to copy a file from a specific source to a destination. Everything works great when running in the IDE, but when I run the standAlone app I receive an error:

Error Copying File 573,16,1,revCopyFile

Help, I have no idea why it is failing. I am running on OS/X using LiveCode 4.5.2. The path and file names are absolute (starting with /users)

Thanks in advance for any help on this, I have spent several hours trying to figure this out with no luck. I saw a couple of similar posts but no real answers.

Re: revCopyFile Problems

Posted: Mon Dec 27, 2010 7:49 am
by WaltBrown
Here's the note from the revCopyFile dictionary entry:

"Note: In a standalone application the Common library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the revCopyFilecommand is not yet available. This may affect attempts to use this command in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack. Once the application has finished starting up, the library is available and the revCopyFilecommand can be used in any handler."

Re: revCopyFile Problems

Posted: Mon Dec 27, 2010 1:26 pm
by interactbooks
Thanks for the response Walt. I'm actually using the command on a mouseUp event of a button so I believe the library should be fully loaded.

Re: revCopyFile Problems

Posted: Mon Dec 27, 2010 7:53 pm
by interactbooks
I was able to resolve this issue using the suggestion in this post:
http://forums.runrev.com/phpBB2/viewtop ... f=8&t=5467

Unfortunately I'm still in a quandary why the original command won't work.