Nope. -_- Man this is irritating. No changes at all. The entire code as it stands now, just in case I'm making a noob mistake:
Imports System.IO
Public Class Form1
Private PicIndex As Integer
Private newfile As String
Private oldfile As String
Private Sub Form1_Load(ByVal...
Further update... I just tried a freeware program (an unlocker at http://ccollomb.free.fr/unlocker/) which, after the exception came in, says the file isn't locked up... now I'm really confused. As a side note, I can *copy* the file normally, but not move or delete it.
No go. :( Is there a way to find out *what* process is holding up the file, perhaps through the error message or something so I can at least find out what it's suggesting the problem is? Or perhaps I should wipe out the 'fileList' variable after I'm finished with it so that it can't be the culprit?
Still no go. I've even got it back to trying the move after the next button is clicked. :( Is there another way, perhaps, to get the file listing? Or to clear the fileList variable in case that's doing it?
Can't be that. I tried a variant where I stored the names in global variables and it was on the next button press that the file was moved, which means the picture box couldn't be the one using it as it was on a new picture by the time it was moving the first one. I'm thinking it has something to...
I'm trying to write a simple simple program. It should be trivial, but I'm coming across an error I don't quite get. The program is a picture sorter. Nothing special, it just shows all the pictures in a directory one at a time and then lets me choose where to send them. I could do the same thing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.