>Wow - I solved the problem but I'm amazed at the solution <s>. Yesterday, I added some Word automation code and included the Word2000.h file in another include file that is utilised throughout the whole application. I dropped the automation code in favour of another solution. After finding that more or less everything was slowing down, I racked my brains for what I had done differently. I pulled the Word2000.h file out and "bingo", everything back to normal. I didn't realise what sort of impact this could have.
Of course, for every include file you use, VFP has to do some additional processing at compile-time. The constants have to be analyzed throughout the code, and replaced.
However, I think this shouldn't be
that slow. Is the .h file very big?
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)