Windows Update Service appears to leak when querying for updates/update history using IUpdateSearcher

  • Thread starter Thread starter AdBaj
  • Start date Start date
A

AdBaj

Guest
Hi,

I am trying to develop an application that ties into the Windows Update API. I am using C++ with the wuapi.h header, and am able to successfully query updates using the IUpdateSearcher::Search or BeginSearch methods. I am using either of these methods quite often, probably about once every 20 seconds. However, I've noticed that when I do so, the Windows Update Service Host appears to grow in memory a bit, about 10mbs per run; after some time, the amount of memory usage is quite high. I've also noticed that, after I stop querying, the memory usage remains high for a period of time (around 10 minutes), before it shrinks back down again.

I'm not sure why this is the case. Could I have assistance in finding a way to query the API as often as I can without causing the Windows Update Service Host to leak memory?

Continue reading...
 
Back
Top