revCopyFile Problems

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
interactbooks
Posts: 65
Joined: Thu Oct 07, 2010 4:47 pm

revCopyFile Problems

Post by interactbooks » Mon Dec 27, 2010 6:53 am

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.

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: revCopyFile Problems

Post by WaltBrown » Mon Dec 27, 2010 7:49 am

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."
Walt Brown
Omnis traductor traditor

interactbooks
Posts: 65
Joined: Thu Oct 07, 2010 4:47 pm

Re: revCopyFile Problems

Post by interactbooks » Mon Dec 27, 2010 1:26 pm

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.

interactbooks
Posts: 65
Joined: Thu Oct 07, 2010 4:47 pm

Re: revCopyFile Problems

Post by interactbooks » Mon Dec 27, 2010 7:53 pm

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.

Post Reply