Hi,Mathieu Routhier
Thanks for you help.
I have found out the problem. It because a Message-Loop not remove message from message queue. Please See there code:
MSG msg;
if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) //this line have got the message ,but not remove it from message queue. we must change PM_NOREMOVE to PM_REMOVE.
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
Thanks for you help again.
======= 2003-05-14 08:58:00 You wrote=======
A little off-topic …
In my experience, this message box appears when GDI resources leak. For
example, calling GetDC() and not releasing it afterwards.Version of NT have a much higher limit (virtually infinite?) for the number
of gdi objects, but 9x busts in no time.You can configure TaskManager to display how many GDI handles have been
allocated to a process. I don’t know if this is present in the win98 task
manager (if any!) but you can try running your app under 2k/xp to monitor
the GDI resources and, at least, see if that’s the problem.Mat
-----Original Message-----
From: Crasher Guo [mailto:xxxxx@sinfors.com.cn]
Sent: Tuesday, May 13, 2003 10:13 PM
To: NT Developers Interest List
Subject: [ntdev] Windows 98 resource leak.Hi,
My programs run in Windows 98 system . After 6-7 hours , OS told me system
resoure exhaust.
Is there any tools to help find out waht kind of resource exhaust?Thanks for you time.
Thanks for you help.Crasher Guo
xxxxx@sinfors.com.cn
$B!!!(J2003-05-14
You are currently subscribed to ntdev as: xxxxx@guillemot.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@sinfors.com.cn
To unsubscribe send a blank email to xxxxx@lists.osr.com
= = = = = = = = = = = = = = = = = = = =
Crasher Guo
xxxxx@sinfors.com.cn
2003-05-15