Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regarding terminology Pin
Michael Dunn27-Dec-02 6:59
sitebuilderMichael Dunn27-Dec-02 6:59 
GeneralRe: Regarding terminology Pin
Nish Nishant27-Dec-02 7:23
sitebuilderNish Nishant27-Dec-02 7:23 
GeneralPROGRAM ICONS (portability and configurability) Pin
Anonymous27-Dec-02 6:01
Anonymous27-Dec-02 6:01 
Generalmessage map question Pin
ns27-Dec-02 5:22
ns27-Dec-02 5:22 
GeneralRe: message map question Pin
valikac27-Dec-02 6:07
valikac27-Dec-02 6:07 
GeneralRe: message map question Pin
ns27-Dec-02 6:09
ns27-Dec-02 6:09 
Generalvideo capture.... Pin
joshfl27-Dec-02 3:51
joshfl27-Dec-02 3:51 
GeneralMemory Leak with MSXML3 Pin
tmasm27-Dec-02 3:19
tmasm27-Dec-02 3:19 
Hello,
I'm facing a tricky situation with my project using MSXML interfaces. Calling methods from my COM Object passing to it IXMLDOMDocument2 seems to leak after looping a while in a multi-thread environment. Here is an example code:
(...)
CComPtr<ixmldomdocument2> inDocXML;
CComPtr<ixmldomdocument2> outDocXML;

hr=myFunc(inDocXML,outDocXML);
(...)
HRESULT myFunc(IXMLDOMDocument2 *inDoc,IXMLDOMDocument2 **outDoc) {
(...) do some stuff
CComPtr<ixmldomdocument2> myTempDoc(inDoc);
(...) do some stuff
outDoc=myTempDoc.Detach();
return S_OK;
}

I'm using a ISAPI to call this COM Component (installed at COM+).
I tried almost everything and, when I used a [out] parameter for a Interface to DOM its seems to leak!!!
My components are Free Threaded.
Can anyone help me, or have faced with this problem already ?

Thanks,
Mário
GeneralReal code? Pin
27-Dec-02 3:56
suss27-Dec-02 3:56 
GeneralRe: Real code? Pin
tmasm27-Dec-02 4:31
tmasm27-Dec-02 4:31 
GeneralRe: Real code? Pin
AlexO27-Dec-02 4:53
AlexO27-Dec-02 4:53 
GeneralRe: Real code? Pin
tmasm27-Dec-02 5:02
tmasm27-Dec-02 5:02 
GeneralRe: Memory Leak with MSXML3 Pin
Navin27-Dec-02 7:01
Navin27-Dec-02 7:01 
GeneralCustomization of Build Pin
gracias_carol27-Dec-02 1:58
gracias_carol27-Dec-02 1:58 
GeneralWhat kind of customization? Pin
AlexO27-Dec-02 4:04
AlexO27-Dec-02 4:04 
GeneralRe: What kind of customization? Pin
gracias_carol29-Dec-02 23:07
gracias_carol29-Dec-02 23:07 
Generalifstream and skipws Pin
georgiek5027-Dec-02 1:15
georgiek5027-Dec-02 1:15 
GeneralRe: ifstream and skipws Pin
Taka Muraoka27-Dec-02 1:24
Taka Muraoka27-Dec-02 1:24 
GeneralHelp me to Release Resources! Pin
HellShrimp4free27-Dec-02 0:23
HellShrimp4free27-Dec-02 0:23 
GeneralRe: Help me to Release Resources! Pin
Mike Nordell27-Dec-02 1:05
Mike Nordell27-Dec-02 1:05 
GeneralGlobals and condition compilation Pin
georgiek5026-Dec-02 22:39
georgiek5026-Dec-02 22:39 
GeneralRe: Globals and condition compilation Pin
Roger Allen27-Dec-02 0:05
Roger Allen27-Dec-02 0:05 
GeneralRe: Globals and condition compilation Pin
georgiek5027-Dec-02 1:14
georgiek5027-Dec-02 1:14 
GeneralMemory Address Interpretation Pin
Dominik Reichl26-Dec-02 22:20
Dominik Reichl26-Dec-02 22:20 
GeneralRe: Memory Address Interpretation Pin
Joaquín M López Muñoz26-Dec-02 22:34
Joaquín M López Muñoz26-Dec-02 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.