Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excesive local area access when using timer
Message
From
12/03/2004 14:53:42
 
 
To
12/03/2004 14:16:44
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00885494
Message ID:
00885764
Views:
9
>>Hello,
>>
>>Sometimes times I get a serious performace hit, and the little gizmo that indicates local area connection activity remains on as soon as I set a timer interval (at 2000). Why whould the timer cause network connection activity?
>>
>>What can cause network connection activity in VFP other than reading/writing data or loading code?
>
>We're going to need a lot more information:
>
>- what is the "gizmo" you're talking about?

Thank you for your response, Al.

The "gizmo" I mean is the icon that shows the local area connection status in the notification are. It has two little computer screens that light up whenever packets are arriving or being sent.

>- what code is in the timer's .Timer event?
IF WEXIST(Thisform.cPreviewWindowName)
	lnTop	 = WLROW(Thisform.cPreviewWindowName)
	lnLeft	 = WLCOL(Thisform.cPreviewWindowName)
	lnHeight = WROWS(Thisform.cPreviewWindowName)
	lnWidth  = WCOLS(Thisform.cPreviewWindowName)

	IF Thisform.Top # lnTop ;
		OR Thisform.Left   # lnLeft ;
		OR Thisform.Height # lnHeight ;
		OR Thisform.Width  # lnWidth

		Thisform.Top    = lnTop
		Thisform.Left   = lnLeft
		Thisform.Height = lnHeight
		Thisform.Width  = lnWidth

	ENDIF
ENDIF
The code is desigined to track the size and position of the REPORT FORM PREVIEW window by an invisible form that contains the timer, in order to be able to recall them next time. The timer fires every 1000 milliseconds.

What I fear the most is that some sort of daemon may have hooked itself to the timer code and that it accesses my LAN for who knows what purpose (it is not accessing the internet, though, or ZoneAlarm would show it).

I must say that after running very slowly for a long while, all of a sudden my machine gained back the speed without any code changes this morning about 4 AM. I am gauging the performance by the responsiveness when moving a window with the mouse.

Thanks again,

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform