帮忙看看这段程序吧
帮忙看看出了什么问题~~~~为什么我每秒执行一次~~~~然后用任务管理器查看~~~~~发现内存占用以每秒4K直线上升~~~~~
void draw(int long,int width,int time,int modify,int modify1,int modify2,Color color,Color color1)
{
double ang,n;
PointF temp_point,temp_point1;
PointF Poly_point[5]; //保存图形顶点数组
ang = time; //时间
n=modify; //秒针位置修正值
ang = ang/60*PI*2 - PI/2 + n/modify1*PI/modify2; //转成弧度
//跟据时间~~计算各顶点的位置
temp_point.X = (float)((long-5)*cos(ang) + 100);
temp_point.Y = (float)((long-5)*sin(ang) + 100);
temp_point1.X = (float)(20*cos(ang+PI) + 100);
temp_point1.Y = (float)(20*sin(ang+PI) + 100);
Poly_point[0].X = (float)(width*cos(ang+PI/2*3) + temp_point1.X);
Poly_point[0].Y = (float)(width*sin(ang+PI/2*3) + temp_point1.Y);
Poly_point[1].X = (float)(width*cos(ang+PI/2) + temp_point1.X);
Poly_point[1].Y = (float)(width*sin(ang+PI/2) + temp_point1.Y);
Poly_point[2].X = (float)(width*cos(ang+PI/2) + temp_point.X);
Poly_point[2].Y = (float)(width*sin(ang+PI/2) + temp_point.Y);
Poly_point[4].X = (float)(width*cos(ang+PI/2*3) + temp_point.X);
Poly_point[4].Y = (float)(width*sin(ang+PI/2*3) + temp_point.Y);
Poly_point[3].X = (float)(radius*cos(ang) + 100);
Poly_point[3].Y = (float)(radius*sin(ang) + 100);
pGraphics->FillPolygon(new SolidBrush(color1),Poly_point,5);
pGraphics->DrawPolygon(new Pen(color),Poly_point,5);
}