Results 1 to 2 of 2

Thread: Permission denied to write to file!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    8
    Hi!,
    I open a file in binary access and close it before I exit in my app. But when the app. is stopped in between for debugging it cannot write to that file again as it says permission denied as some other process is using it. But the fact is no one is using it. So everytime I have to change the name of the file to write temp results and it is real pain. Can anybody please tell me how to get around this problem, so that I do not have to change name of my temp file everytime.

    Thanks for your help.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Not sure what you meant but: When you open the file in binary, you have to close it before any other app can make changes to it. If you are debugging in the section between the Open and Close then something odd may happen, I don't know what. But you can always close the file in the immediate window. Close #1 or whatever..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width