Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling exe - access denied

Status
Not open for further replies.

LostInCode

Programmer
Feb 4, 2004
216
DE

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.
 
I've never experienced anything like this and I've been using VB for about 10 years (starting with Version 3).

My suggestion would be to chek your add ins. Click Add-Ins -> Add In Manager. Check the "Available Addins" the are set to all, and/or startup.

You could try setting those addins that are set to startup such that they do NOT "Load On Startup". Then check to see if the problem is solved. If so, add each item that was originally set for startup one at a time to find the one causing the problem.

Hope this helps.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Thank you for your reply.

I only have the API viewer, MZ-Tools, Klass generator, and Pretty.Print. The others are not automatic loaded - just when needed.

All of these have were being used at a time when this problem never occured. I just don't remember if it started after I updated the NT 5 OS or after installing VB SP 5 or 6.

So, yes, I have been using VB for many years also and never had this problem until a year or two ago.

But I will still try with the add-ins removed.
 
Make sure you've got read-write access to all the "extra" files produced during a compilation -- the .pdb, the temp directory, etc.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top