下面是出错的源程序,将它拿下后运行很正常,该代码在定时器内,<br>每分钟执行一次,执行一次后约多占用100K内存,直至死机。<br>请高手解答。里面的函数均未声明,不知是否有关系?同样的代码用VB6很正常。<br>if aa=strtoint(Edit91.text) then<br>begin<br> if GetPixel(GetDC(0),500,15)=strtoint(Edit92.text) then<br> begin<br> if GetPixel(GetDC(0),420,53)=strtoint(Edit93.text) then<br> begin<br> mouse_event( MOUSEEVENTF_ABSOLUTE +MOUSEEVENTF_MOVE,450*65535 Div (screen.Width),53*65535 Div (screen.Height),0,0);<br> mouse_event( MOUSEEVENTF_LEFTDOWN,0,0,0,0);<br> mouse_event( MOUSEEVENTF_LEFTUP,0,0,0,0);<br> end;<br> aa:=47;<br> while aa<>12345678 do<br> begin<br> aa:=aa+1;<br> if GetPixel(GetDC(0),56,25)=strtoint(Edit93.text) then<br> begin<br> if GetPixel(GetDC(0),aa,53)<>strtoint(Edit92.text) then<br> begin<br> if GetPixel(GetDC(0),aa+9,53)=strtoint(Edit92.text) then<br> begin<br> mouse_event( MOUSEEVENTF_ABSOLUTE +MOUSEEVENTF_MOVE,(mytime_desktopdollars+30)*65535 Div (screen.Width),53*65535 Div (screen.Height),0,0);<br> mouse_event( MOUSEEVENTF_LEFTDOWN,0,0,0,0);<br> mouse_event( MOUSEEVENTF_LEFTUP,0,0,0,0);<br> aa:=12345678;<br> end<br> else<br> begin<br> aa:= aa+70;<br> end;<br> end;<br> end;<br> if aa>500 then aa:=12345678;<br> end;<br> end;<br> aa:=0;<br>end;<br>