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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when building an executable

Status
Not open for further replies.

spayne

Programmer
Feb 13, 2001
157
US
Hello,

I am rebuilding an existing project into a new executable file. This way I can test my modified code without disturbing the already existing .exe that all of our employees are using. Anyway, during the build I get a [file access denied] error. I have done this same thing with other projects without any trouble. Any ideas?

TIA,
Steve
 
Steve,
Are you saying that the .EXE file you are creating is different than the production one? Do you get this error if you build the project immediately upon entering VFP? (Or after you've done some editing?) Do you issue a CLEAR ALL or CLEAR PROGRAM before the build?

Did you notice if you get the error during the build app portion or the build exe part?

Rick
 
Also,

Make sure other developers do not have any of the required libraries, forms, programs, etc. open.

For example, if they have the following code:

SET PROCEDURE TO myprg

OR

goApp = CREATEOBJECT('mycontainer')



Jim Osieczonek
Delta Business Group, LLC
 
>Are you saying that the .EXE file you are creating is >different than the production one?

Yes, it is given a different name, but pointing to the same project as the production .exe.

>Do you get this error if you build the project immediately >upon entering VFP? (Or after you've done some editing?) Do >you issue a CLEAR ALL or CLEAR PROGRAM before the build?

Yes, anytime I try to build it. I even rebooted my workstation and restarted VFP. By the way I'm running 6.0 with no service pack.
 
Jimoo,

I am the only developer here. My boss has VFP on his workstation but does not have it open. Our users are working off the live executable. That is why I create a second executable so I can test the code live before I give it to our employees.
 
Hi Steve,

Am I understanding correctly that you do not know the name of the file you are being denied access to?

Regards,

Mike
 
mspratt,

That's correct. I just get a messagebox saying "File access debied". I can either hit "OK" or "Help". If I select help, this pops up in the msdn help:

"File access is denied (Error 1705)
You have attempted to write to a file that is write protected."

The file that I am writing to doesn't even exist. I've even tried several names. I'm trying to create a new executable file.
 
Are you sure you have proper network rights? I will check first with network administrator.
 
Just figured it out. Upon building the project it calls a project class that strips printer info from the reports and tags. I just need to build the project when no one is printing a report.

Thanks, all, for giving my problem your consideration.

Steve
 
Actually, that didn't do it. I removed that project class and I still get the same error. I can't seem to find anything else running in the background that could cause this.
 
Hi Steve,

The only time I have seen a similar error was when I tried to build to a file I had in use. You should try changing the path to a empty local subdirectory during the build when you get the save as dialog.

There are utilities availble at that may show which file is causing the problem (filemon or procexp).

Regards,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top