Results 1 to 4 of 4

Thread: Really readonly or what?! This is going beyond my intelle

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Angry

    Ok, i have a big fat problem
    My process to change a file while playing it in winamp do this:
    1. saves the position, stops the file
    2. writes to it
    3. continues to play from the position
    (so i am not only pausing it)

    So when i access write the file i get a error 75 - Path/File access error
    This occurs not in acccess read

    I tried to move or delete the file with explorer and it worked fine.
    I also used Close keyword in immediate to Close all files (Close all accessed files in vb) but it's still giving the same error. Also any other file can be accessed so this MUST be Winamp causing it. Why am i then able to move or delete it with explorer?

    What's wrong?

    Help needed.

    Than
    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.

  2. #2
    Guest
    Maybe it's because Winamp still has the file open. Just because you stopped playing it doesn't mean the file is closed. Try closing Winamp, then write to the file and then use the Shell statement to open winamp again and play the song.

  3. #3
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    or you might not have closed the file tjhat you were previously saving to, i have just done a program with text files and they are a bit of a pain in the arse, they need a lot of error handling.

  4. #4

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well, well, well, how stupid can a person be? Well not as stupid as me, i have over 300 mp3's in that folder and one single mp3 was readonly. And of course it was that which was playing, oh, that kind of things make me sick. I fixed some additional handling for that.

    About errorhandling, try to get rid of it us much as possible, put all errorcausing statements under possible conditions or put them in separate functions with separated errorhandling because it's a pain to not having the other errors shown.
    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.

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