MMC application memory usage keep increasing


 

i wrote mmc application using atl c++.

in mmc left scope, items have image represent item's state(started or stopped).

and have thread update mmc left scope item's image according item's state.

the code update item image following:
(the following code executed in thread function)

while( application running )
{
...
//get item's state , define scopedataitem , put image id it.

scopedataitem sdi = { sdi_image | sdi_openimage,
        null, lclosedimage, lopenimage, 0, 0, 0,
      0, lid };

//update item's image
m_piconsole->setitem(&sdi)  //m_piconsole ccomptr<iconsolenamespace2>
...
}


run mmc application, can see item's image swithover according state.

but when @ mmc application's memory usage in task mangaer, found memory usage of mmc appliction keep increasing.

if remove code update item's image(m_piconsole->setitem(&sdi)), memory usage not keep increasing.

is there have same experience?

how can avoid this?

more interesting thing if minimize mmc application, memory usage stop increasing.

thanks!

 

any idea welcome...


thanks.



Architecture  >  Architecture General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'