LostInCode
Programmer
Anyone know why I get "access denied" error when I try to compile any vb code, but the error only happens the first time I try after loading the code in the IDE for the day?
This happens only when there is already a copy of the same exe previously compiled, in the same folder.
After the first try, the first time the code is loaded for the day, I get this error right away, and after I try again it works.
If I close the ide and reopen then the error doesn't happen.
If I start another copy of the ide and load another projekt I will get this error also.
Then, as said, for the second and more times I do not get the error.
Only after a computer restart and load the code again do I get this error the first try - and it doesn't matter how long I wait after loading the code, so it must not be a timing matter. I would think it has to do with a problem with the operating system. Or maybe the previously compiled exe is registered, and therefore the error - but then I would think the error would come after each compile.
It is just a little nerving.