#post-id: 3781-20-30
#original-date: 2.12.2010 Thu
#original-time: 8:30 PM
#original-day: 3781
#original-host: WinXP Home SP3 (Build 2600)
Я как в том анекдоте, вся кипю. Вместо того чтобы исправить ошибку в некоей функции Microsoft сделала вот такую пометку в MSDN:
On versions of Windows prior to Windows Vista and server versions prior to Windows Server 2008, SHAutoComplete should not be called more than once with the same HWND. Doing so results in a memory leak. It prevents the original resources from being released, including the previous instance of the AutoComplete object, enumerator objects that the previous AutoComplete object has referenced, and Windows Graphics Device Interface (GDI) resources. Rather than call SHAutoComplete again with a different set of flags to change the AutoComplete list, call CoCreateInstance with CLSID_AutoComplete to obtain the AutoComplete object. Then pass the HWND to the object to initialize it and provide your own custom enumerator. You can use CLSID_ACLMulti if you want AutoComplete to use multiple lists.
http://msdn.microsoft.com/en-us/library/bb759862%28VS.85%29.aspx
Нормальный багфикс, чо!