|
-
Sep 25th, 2000, 06:43 AM
#1
Thread Starter
Hyperactive Member
After running my app, i cannot re-run the app due to a an error message "RUN TIME ERROR 70"
"PERMISIION DENIED"
I do a lot of file handling and wondered if there is a way in the environment ot see if any files handles etc are still open.
Many thanks Gary
-
Sep 25th, 2000, 09:21 AM
#2
Fanatic Member
I think you can check that with this in the debug window:
Code:
? FreeFile '(?=Print)
-
Sep 25th, 2000, 10:58 AM
#3
Thread Starter
Hyperactive Member
reply
Just gave me the number 1, any other clues or is this my clue freefile 1?
Gary
-
Sep 25th, 2000, 11:38 AM
#4
I got around the error 70s in an application (on the Open for input line) by trapping it in the error handler and issuing a sleep command for a couple of seconds and then resuming the same open statement.
Apparently one of the modules was trying to open the files which was not yet done with by another app. Honestly, it worked like magic for us.
I would also like to know if there is a way to see if a file handle is open.
-
Sep 26th, 2000, 04:08 AM
#5
Thread Starter
Hyperactive Member
SAMPLE
Do you have a sample example.?
GARY
-
Sep 26th, 2000, 05:10 AM
#6
transcendental analytic
To be really sure, you can use close method without filenumber.
it will close all files and it won't cause any errors if there are no files open.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 26th, 2000, 06:07 AM
#7
To get the next open file handle, you can use FreeFile. The FreeFile function will return an integer with the next file number available.
To see if one is open,
Code:
On Error Resume Next
Open FileName For Input As TheOneYouWantToCheck
If Err.Number = 70 Then
MsgBox "in use"
Else
Close TheOneYouWantToCheck
End If
I think that works.
Sunny
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|