viresh
2006-02-08 22:00:53 UTC
Hi,
I am using CComPtr<IXMLDomDocument2> in my application.
At times (like one or twice in 200,000 xml msgs) when i delete the class,
IoPlus, where the above variable is stored, i get an Extra call to Release!!!
in the trace window.
My application has 3 threads, each thread does some work and then passes
onto next thread. The last thread logs any errors encountered and then
deletes the structure on heap. The IoPlus class is passed and recv by threads
using IoCompletion ports.
I tried using Windbg but so far it always seems to point to the release of
the pointer in destructor of the IoPlus class. I thought there might be
corruption before the destructor gets called but so far none have been
reported.
Any ideas on what i am doing wrong here?
Thanks
Viresh
P.S:- i get this only in release build( w/ pdb generated )
I am using CComPtr<IXMLDomDocument2> in my application.
At times (like one or twice in 200,000 xml msgs) when i delete the class,
IoPlus, where the above variable is stored, i get an Extra call to Release!!!
in the trace window.
My application has 3 threads, each thread does some work and then passes
onto next thread. The last thread logs any errors encountered and then
deletes the structure on heap. The IoPlus class is passed and recv by threads
using IoCompletion ports.
I tried using Windbg but so far it always seems to point to the release of
the pointer in destructor of the IoPlus class. I thought there might be
corruption before the destructor gets called but so far none have been
reported.
Any ideas on what i am doing wrong here?
Thanks
Viresh
P.S:- i get this only in release build( w/ pdb generated )