Koen, Good shout thanks!. I already had Thor Tools installed but never thought to use GoFish4 as I had some bad experiences with the very first original version but the current one looks good and stable.
Hopefully I can now track down the multiple refreshes!!
Thanks again for the heads up.
Dave
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Koen Piller Sent: 06 September 2017 16:33 To: ProFox Email List profox@leafe.com Subject: Re: Event logging
Dave, 1) I would install GoFish4 this application can list you all the calls to Refresh() 2) I would comment all thisform.refresh for a starter except in the activate event of Page this usualy helps enourmously
Regards, Koen
2017-09-06 17:16 GMT+02:00 Dave Crozier DaveC@flexipol.co.uk:
Fellow Foxers, Just a little aside to late Wednesday afternoon:
I have a heavyweight data entry program in VFP written which supports one monster form with pageframes stacked inside each other each page containing various visual classes down to up to 10 levels.
This form is now showing its age as it has been added to over some 20 years and never been streamlined or optimised in any way. The main problem is that the switching from the main form pageframe onto each of the 10 tabs in the pageframe is somewhat slow running on the network and I am sure that it is all the Draw(), Paint() and refresh repeat calls that are affecting it.
So, I have decided to rip it apart and find out just where the majority of the repeat "refresh" coding is being done.
I thought I could initially use the event Logger but it doesn't log calls to any refresh methods so then I turned my mind to the coverage logger which doesn't really help me at all.
Anyone any ideas as to how I can easily accumulate the calls to the various controls refresh methods and get some simple statistics to have a look at where all the processing effort is going?
All I can think of is to programmatically bind a "logging procedure" event to each control's refresh event and then log the results into something like a csv table for further analysis or at worst, log events by collecting information from the refresh events in the base classes for each control but that would be very long winded.
Any other ideas other than those mentioned?
Dave
[excessive quoting removed by server]