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.
revCopyFile Problems
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: revCopyFile Problems
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."
"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."
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
-
- Posts: 65
- Joined: Thu Oct 07, 2010 4:47 pm
Re: revCopyFile Problems
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.
-
- Posts: 65
- Joined: Thu Oct 07, 2010 4:47 pm
Re: revCopyFile Problems
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.
http://forums.runrev.com/phpBB2/viewtop ... f=8&t=5467
Unfortunately I'm still in a quandary why the original command won't work.