Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 - Cannot create an executable that will run...
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00837813
Message ID:
00837969
Views:
42
>Hi Michael,
>
>In your original post you said ...
>
>"If I try and build the application, recompiling all files, I get the following error: "The library base.vcx cannot be compiled because it is in use"
>
>I took this to understand that you cannot do a full recompile of your project into an exe. If this is correct then you need to release the class library from the VFP command window in order to allow VFP to re-compile it into your project/exe.
>
>If I have misunderstood this and you are in fact able to do a full recompile but still cannot run the exe then I think there is an environmental problem perhaps like what Thomas has suggested.
>
>Can you do a full re-compile without error?
If I try to do a full re-compile, I get the errors mentioned. You twigged my memory so I tried this. (Without success. :( )

In my base.vcx I have a class called _phook. This is the projecthook routine that is executed prior to builds. In the project, it has a space to put this. If this is there, the project will not compile without the error mentioned. (base.vcx is in use.) So I took it out, shut down and restarted the computer.
Went into VFP and confirmd that this was not there. The project compiles, no errors now.

Unfortunately, when I try and run the executable from Windows explorer, I get the Not enough memory errors.
However, if I have VFP 7 open and use the Do from the program menu to run the EXE file, it works no problems.

Have I given more details to aid you in helping me?

A few questions about Thomas asked. I understand the config.fpw, I have a file like that in my poject. I will ocnfirm again that it exists.
I have at least 1.5G free on the HDD and 128M ram. How could I find out if the swap file is not working?

Again, thank you for your help so far...
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform