I have a application that creates a folder. After the folder is created, I am trying to manually delete it and I get the message that the folder is in use. One of the last statements I put on the mouseup command of the button is...
set the destroyStack of this stack to true
Should this release the folder? If not...what command would I use. When I close my application, I am able to delete the folder.
Warren
Lock On Folder
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10044
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Is there anything in the folder?
If on OS X, remember that the OS sometimes creates invisible files, like .DS_Store.
You might try setting the defaultFolder to it and getting the files, to see if there's anything in there that isn't otherwise evident.
If on OS X, remember that the OS sometimes creates invisible files, like .DS_Store.
You might try setting the defaultFolder to it and getting the files, to see if there's anything in there that isn't otherwise evident.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Hi Warren,
This typically happens when you write to a file but don't close the file. Make sure that you always close a file after opening and writing to it.
What exactly happens "after the folder is created" but before you try to "manually delete it"?
Best,
Mark
This typically happens when you write to a file but don't close the file. Make sure that you always close a file after opening and writing to it.
What exactly happens "after the folder is created" but before you try to "manually delete it"?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
I found when the locked folder is the defaultfolder, I couldn't delete it. As long as I specifiy a different folder as the defaultfolder...the file is not locked.
Thanks for everyones help in trying to fix this!
Warren
Thanks for everyones help in trying to fix this!
Warren
Last edited by warrenk on Fri Sep 26, 2008 9:42 pm, edited 1 time in total.
Hi Warren,
Can you post your script while I do a test? (This is relevant for me, as I'm working on an installation software package).
Mark
Can you post your script while I do a test? (This is relevant for me, as I'm working on an installation software package).
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode