![]() Indeed have something to do with "Symbol Servers" and/or some library missing from my app? The fact the error persists even after a reboot suggests the problem is my code, but I'll be damned if I can figure out what is wrong. With Overwrite set to True, and 99.99% percent of the time, files are overwritten just fine) and have NO idea why. But if there IS a file to be overwritten at the destination, I get an error (only 0.01% of the time. Yet the Copy command still throws an Exception.Īs noted above, if there is nothing to overwrite, I do not get an error and everything copies correctly to the correct destination. The destination filename is the same but the path is different and the Index may change.ĭebugging in real time, I can verify the source & destination path/filenames are fine. O strSourcePath is the path of the png being copied, named by strCategory and a two-digit index. Tryį(strSourcePath & "\" & strCategory & Format(intSourceChecked(intCnt + 1), "00") _ & ".png", strAppPath & "Save\" & strCategory & Format(intItemsChecked(intCnt + 1), "00") _ & ".png", True) Here is the line of code causing the issue (the program is too extensive to show more): ' intCnt is a For/Next Loop. JUST copied, produces the same error as before! Deleting the destination file by hand, my program will copy my file to the destination location just fine, but then trying again. The files themselves are likely not the issue. So I don't think the error message is accurate. I KEEP getting the SAME error even when trying to copy a DIFFERENT file over a DIFFERENT destination. The destination file being overwritten is not corrupt, and once this error pops up, I've checked the destination path and it is fine. Googling " Cannot find or open the PDB file" reports something about a missing "Symbol server", but this is a self-contained project that loads/does nothing remotely or over the Net. Line in the code-block below.) Note "overwrite" is set to True. The error log tells me the error is: "frmMain.vb:line 369" (the "" I say "nonsensical" because I've tried closing the app supposedly using it, tried logging off/on Windows, and even a complete reboot, yet the error persists. 99.9% of the time it works fine, but once in a blue moon, I get this nonsensical error: System.IO.IOException: The process cannot access the file 'E:\Program Files\\picture.png' because it is being used by another '. I've written a program I've been using for years.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |