我的程序长时间运行就失灵!
由于我的程序需要长时间不断运行,短时间内(1-2小时)程序完全正常,但时间长了(4-6小时)程序会失灵(停止响应)。
主要代码如下,这段代码被反复运行。
Private Sub Timer_Timer()
Dim hDC As Long
hDC = GetDC(0)
If GetPixel(hDC, 1000, 418) = &H39BAFF Then
wait 2
Dim Point As POINTAPI
GetCursorPos Point
Dim a, b
a = Point.X
b = Point.Y

