I have an app running in LC 6.1.1(rc2) on XP which seems to be unable to copy an sqlite database which has been used in the app, even tho it has been closed.
The following code is a snippet I've been using for testing
Code: Select all
revCloseDatabase gDBid --closes newsapp.sqlite
put "binfile:" & g_sfp_docs & "/airnews/sqlite/test.sqlite" into tTestDB
put g_ftp_sqlite & "test.copy" into g_ftp_sqlulpath
--copies test.sqlite to test.copy on server
put url tTestDB into url g_ftp_sqlulpath
put "binfile:" & g_sfp_docs & "/airnews/sqlite/newsapp.sqlite" into tRealDB
put g_ftp_sqlite & "newsapp.copy" into g_ftp_sqlulpath
--creates empty file newsapp.copy on server
put url tRealDB into url g_ftp_sqlulpath
The var g_ftp_sqlulpath contains all the ftp info, my username, password, path, etc., and must be correct, because...
The first test, copying a file called test.sqlite to the server works just fine.
The second test, an attempt to copy newsapp.sqlite fails. It logs into the correct path and creates an empty file, but does not upload.
newsapp.sqlite _was_ open in the app, but the revCloseDatabase does close it. I've tried to access it after the close, and correctly get an error.
Can anyone plz explain to me how to FTP a database that has been used but is now closed... Or, can you see an error in my code?
Many thanks...
--paul