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

Compilation

Status
Not open for further replies.

alisaif

ISP
Apr 6, 2013
418
AE
Hi,

At the time of compilation, how can I see progressive bar and other information in status bar? It is just to see that compilation is going on. Only "Hour Glass" seems that the system is hanged.

Thanks

Saif
 
You can start the debugger and open the debugout window. You can see details of compiplation listed in there, every file being compiled.

If compilation hangs, you see what hangs.

A good thing to do before compilation is CLEAR ALL or even restat VFP. Hanging compilation because of classes still residing in memory can be prevented that way.

Bye, Olaf.
 
No, No I am sorry I couldn't deliver the right object to you.

I just wanted to see the progress bar on the screen and other information related to the project ("means what file is compiling") in the status bar at the time of compilation. I think some "SET" command is needed for that.

I hope you got it.

Thanks

Saif
 
Using the Debugger will certainly solve the problem, but keep in mind that the compilation is likely to be slower while the Debugger is open.

As well as doing CLEAR ALL or restarting VFP as Olaf suggests, it is a good idea to clean up the various files in the project. For the project itself, select Clean Up Project (on the Project menu). For forms and class libraries, open the files as DBFs (with USE), and then pack them. You don't need to do that before every compile, but it's worth doing once in a while, and especially after you have done a lot of development on a particular file.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
I didn't knew you could turn that usual progress window of the build off or have some settings turning it off. If I SET STATUS BAR OFF the build will show steps in a wait window instead.

Do you have multiple screens? The build progress window could show up on another display.

Anyway, if you have a hanging compilation, the debugger debug out window is your best way to find out the reason and the file hanging.

Bye, Olaf.
 
Thanks Mr.Mike for the utility. A nice utlity, but!!

After running it shows like that

comperr_syzjxe.png


What does it means?

Thanks

Saif
 
You seem to have a database in your project, that is used by users.
PACK only works on a dbc in exclusive mode.
Somehow Compile also compiles the DBC as part of your project and can't PACK it beforehand.
Remove that DBC from your project during build.
In the long run you should have a separate DBC fpr development and not the one DBC the app finally works on. That's just an assumption I have, because who else would have the DBC opened but users.
If that's not the case I already said CLEAR ALL would help, it does not only clear classes residing in memory, it also closes workareas and DBC. You also should collapse the database node of the project manager, otherwise the DBC is open,

Bye, Olaf.
 
The program I suggested does indeed attempt to compile a database. That may or may not be what you want. For example, you might have stored procedures in the database that need to be compiled.

If that's so, the solution is to make sure the database is closed before you do the compile. And the way to do that is to close the project first. As long as the project is open, there is a chance that any databases contained in the project will also be open. That's because the project has to know which tables (and views, stored procedures, etc.) are contained in the database.

So, close the project, then do CLOSE DATABASES ALL in the command window, then run the utility.

Alternatively, you can avoid compiling the database by making a simple change to the utility. Around line 70, you will see the command to compile the database. Simply comment out that line.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
No one is using, still I didn't implement the system as yet.

Please advise.

Thanks

Saif



 
Repeated:

1. CLEAR ALL
2. collapse the database node of the project manager

Then build.

Bye, Olaf.
 
No one is using, still I didn't implement the system as yet.

YOU are using it. The database is open in your development environment. You can confirm that by glancing at the combo box in the middle of the standard toolbar. If it shows the name of the database, then the database is open (you might need to actually drop down the combo in order to see the name).

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top