BUG: GetCommProperties Leaks a Handle |
Q139657
Repeated calls to GetCommProperties cause the process handle count to increase and never decrease. This can be detected by running PerfMon. This eventually causes system failures.
To work around this problem, don't call GetCommProperties repeatedly. Call GetCommProperties once, and then store the result for use later. If you must repeatedly call GetCommProperties, you should periodically exit the process and restart. You may want to create a separate, short-lived process to get the desired information and communicate it to the main process by using IPC methods.
Microsoft has confirmed this to be a bug. This has been fixed with release of Windows NT version 4.0.
Keywords : kbAPI kbKernBase kbGrpDSKernBase
Issue type :
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWin32SDK351
|
Last Reviewed: March 8, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |