0

I know this has been asked before, but none of the questions I've looked at seem to answer my question. So, with that, and to assure I've done my homework before someone gets on me, let me tell you what I've done to cause the error, and what I've tried to fix the problem.

This all started two days ago. I created a spritesheet animator program so that I can quickly edit sprite sheets. I'm still in the process of adding some aesthetic touches to the program, but with the functionality working more or less, I didn't really get around to it. That day, though, I figured I could add an icon to it, at least. So I made it, attached it to the program, and watched it appear on the taskbar in all its beauty.

Now I tend to use the program a lot, but it's not finished yet, so I haven't "Released" it yet. I thought that I could just pin it to my taskbar, and just have the reference be to the bin/Debug version of the program. However, I found that when I did this, the icon, which I had been tweaking that day, was not showing up properly (totally different problem not related to this one). So I had to pin and unpin the program multiple times. I knew that sometimes, on some systems, the icon won't change or appear on the taskbar properly until after you restart the computer. So at the end of the day, I shut it down, and restarted the next day. It didn't work.

At that point, it didn't seem all that important to me, so I just decided to postpone the edit and continue with my spritesheet work. After a while, I wanted to see it in action, so I fired up my animator via the taskbar. That was when Avast! started up trying to analyze the thing, to see if it was a virus. I figured "OK. It's not a virus, but you'll find out in a little bit." A little bit passed (about an hour), and the thing never finished. After multiple tries to get the accursed over-cautious virus protection to leave my program alone, I decided to unpin it and run it from the IDE. It worked fine at that point. I re-pinned it afterwards, and it would run normally from either option: via IDE or from the taskbar.

After another day and restart, I decided that I had enough of the ugly icon, and edited it one more time. I put it into the program, but when I tried to build, it hung there for longer than usual, then came back saying something like this:

Unable to copy file "obj\x86\Debug\SpriteSheetAnimator.exe" to "bin\x86\Debug\SpriteSheetAnimator.exe". The process cannot access the file 'bin\x86\Debug\SpriteSheetAnimator.exe' because it is being used by another process.

Following this message were warning messages, detailing how many times it tried to build it (10 times).

Here starts the methods of trying to fix the problem, if you've read this far.

  • I thought that was weird, so I decided to just clean it and rebuild. I got this from the attempted cleaning:

Unable to delete file "C:...\bin\x86\Debug\SpriteSheetAnimator.exe". Access to the path 'C:...\bin\x86\Debug\SpriteSheetAnimator.exe' is denied.

  • Ok. This sucks. So after trying to manually delete the \bin and \obj folders, I found that it still wouldn't let me, for the same reasons.

Those were a day ago. Today I tried these:

  • I found that processes could have a handle on the files, so after some research I found handle.exe from SysInternalSuite could fix the problem. I tried to enter "handle -c 18 -y -p 5946" into a command prompt. It didn't work, and all I got back from handle was an error:

T

That's it. No typo or omitted letters. "T"-- that's all I got as an error.

  • I also found that I could just delete the threads using Process Explorer from the same suite. Somehow I had three of them, even though the program is not multi-threaded. Anyway it didn't matter; when I tried to kill them, it said I didn't have access.

So that's it. I can't think of anything else to do.

I'm using Windows 8.1 with VS2013.

Handle is version 4.0

If you want the handle dump let me know, and I'll add it. It's really junky, and all this may get erased for being to long.

Skello
  • 101

0 Answers0