Joined: 12 Nov 2008
|Posted: Thu Nov 13, 2008 2:26 am Post subject: OOobasic: Problem deleting a file through ucb.SimpleAccess
|Hi, here a newbie.
Well, I am just trying to automatize some work and I have to move files in the process.
When I let the macro run, it crashes:
BASIC runtime error.
An exception occurred
Message: general error during transfer
This happens with the SimpleAccessinstance.move so as the SimpleAccessinstance.kill (I use the kill function after sucessfully copying the files)
It does not happens with all files, there are 3 files and ussually it crashes after moving or deleting 2 files.
What is really amazing is following: If I try to depure and let the code work step by step... It works!!! and delete or move all the files.
I do not know what to do. Any ideas?
Platform: Win XP, OOo 3.0