acces denied at running remove()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mitulatbati
    New Member
    • Mar 2010
    • 1

    #1

    acces denied at running remove()

    Hello,

    I just want to delete a file from the hard disk, therefore I use the remove() standard function.

    Sometimes I get an error code -1 (access denied), when I want to do it. Even if I try to delete the same file, then copy it back (just for test reasons), it works, and then suddenly error -1.

    Can somebody tell me what to do? I have already tried to call fflush(), but it doesn´t help.

    mitulatbati
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You may need to post your code in tyhe area where this is occurring. An acess denied is often the error associated with using a bad pointer.

    Comment

    Working...