一小段程序,但是运行的时候内存会不断增加,请给看看怎么回事?
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
TPoint ScreenPos;
HDC DC = GetDC(0);
GetCursorPos(&ScreenPos);
StaticText1->Color=TColor(GetPixel(GetDC(0),ScreenPos.x,ScreenPos.y));
ReleaseDC(0, DC); //释放掉了,但内存还是会不断增长,为啥?
BYTE nRed=GetRValue(StaticText1->Color);
BYTE nGreen=GetGValue(StaticText1->Color);
BYTE nBlue=GetBValue(StaticText1->Color);
}

