c - Problems in Memory Handling with MSXML -


i've got application testing fabricated products using legacy code in dll. application set different products. setup done via xml-files , can (and will) changed during runtime, i.e. @ end-of-lot. processing of xml done mentioned legacy dll.

after running on longer time (days weeks) i've noticed increasing memory footprint. debugging that, trace (possible) leak dll. after getting source, further investigate till found this:

caobjhandle doc; msxml6_newdomdocument40ixmldomdocument2(0, 0, locale_neutral, 0, &doc); [...] msxml6_ixmldomdocument2load(doc, 0, vtpath, &success); 

it seems me, called every time, new lot started. , it's doc structure, seems reside in memory. don't find place freed.

after all, dll had lot of minor leaks, not freed objects (of cvi-functions). fixed those, don't know, how free ms-objects. came across this: understanding msxml garbage collection mechanism, after have ansi-c code, i'm not sure, gc , wether works or not.

is there way, free msxml-objects manually?

okay, found answer. msxml6_* object deallocated ca_discardobjhandle().


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -