PRB: COMCTL32 May Leak Handle to Registry Hive (326328)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows XP
- the operating system: Microsoft Windows 2000
This article was previously published under Q326328 SYMPTOMS
When a user logs off, there may be a delay before the logoff process completes. On Windows 2000, this can take up to a minute. If roaming profiles are turned on for the user account, the roaming profile is not saved.
CAUSE
This problem can occur when an application leaks a handle to the registry hive for the user. The problem described here relates specifically to such a handle leak that is caused by the Microsoft library file named Comctl32.dll. However, it causes the problem described here only in very specific circumstances.
RESOLUTION
To prevent this problem, call the RegDisablePredefinedCache API as early as possible in the life of the process.
Alternatively, make sure that when Comctl32.dll is first loaded into the process, the thread that causes it to be loaded (either directly or indirectly) is not impersonating a user account that may later be used to log on to the computer interactively.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 10/29/2003 |
---|
Keywords: | kbbug kbpending KB326328 kbAudDeveloper |
---|
|