Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChanges in STL from VC6 to VC7 Pin
Franz Klein10-Apr-03 3:17
Franz Klein10-Apr-03 3:17 
GeneralRe: Changes in STL from VC6 to VC7 Pin
Alexandru Savescu10-Apr-03 4:17
Alexandru Savescu10-Apr-03 4:17 
GeneralRe: Changes in STL from VC6 to VC7 Pin
Nemanja Trifunovic10-Apr-03 6:24
Nemanja Trifunovic10-Apr-03 6:24 
Generalswitch statement Pin
Aaron Knox10-Apr-03 3:13
Aaron Knox10-Apr-03 3:13 
GeneralRe: switch statement Pin
Zdeslav Vojkovic10-Apr-03 3:28
Zdeslav Vojkovic10-Apr-03 3:28 
GeneralRe: switch statement Pin
Dave Kreskowiak10-Apr-03 6:03
mveDave Kreskowiak10-Apr-03 6:03 
GeneralRe: switch statement Pin
Toni7810-Apr-03 19:13
Toni7810-Apr-03 19:13 
GeneralMemory Leaks in ADO and MSXML Pin
butchb10-Apr-03 2:56
butchb10-Apr-03 2:56 
I have recently written a Service that parses a large XML file using MSXML, breaks the xml down in to fragments, and then calls a SQL Server stored procedure to process the xml fragment. As each call to the stored procedure is made memory is leaked. I have not been able to find any information concering this particular problem. It also appears that the MSXML objects are also leaking memory. The code fragment that follows is where the leak occurs. All pointer are SmartPointers and no dynamic allocation occurs in my code. Anybody have any ideas?


IXMLDOMNodeListPtr LogEntries = pXMLDocRoot->childNodes;
IXMLDOMElementPtr LogEntry = NULL;
for( int i = 0; i < LogEntries->length; ++i )
{
LogEntry = LogEntries->item[i];
if(LogEntry->nodeType == NODE_ELEMENT )
{
CString nodeName = (TCHAR*) LogEntry->nodeName;
CString spName;
spName.Format(_T("sp_%s"),nodeName);
CString xml = (TCHAR*)LogEntry->xml;

// execute this data
if (S_OK != m_AdoCmd.Execute_StoredProc(spName, xml))
{
CString errorMsg;
errorMsg.Format("Failed to execute stored procedure %s: error: %s", spName, m_AdoCmd.m_errorStr);
LogErrorMsg("ProcessXML: " + errorMsg);
return false;
}
}
LogEntry.Release();

}
LogEntries->reset();


Butch
Generalprocess exe full path Pin
cubiq10-Apr-03 2:54
cubiq10-Apr-03 2:54 
GeneralRe: process exe full path Pin
valikac10-Apr-03 7:53
valikac10-Apr-03 7:53 
GeneralRe: process exe full path Pin
cubiq10-Apr-03 21:15
cubiq10-Apr-03 21:15 
GeneralParsing "*.xls" file Pin
Abin10-Apr-03 2:47
Abin10-Apr-03 2:47 
GeneralRe: Parsing "*.xls" file Pin
Chris Losinger10-Apr-03 2:56
professionalChris Losinger10-Apr-03 2:56 
GeneralRe: Parsing "*.xls" file Pin
Zdeslav Vojkovic10-Apr-03 3:06
Zdeslav Vojkovic10-Apr-03 3:06 
GeneralCounting characters in a buffer Pin
Overfiend10-Apr-03 2:32
Overfiend10-Apr-03 2:32 
GeneralRe: Counting characters in a buffer Pin
rrrado10-Apr-03 2:50
rrrado10-Apr-03 2:50 
GeneralRe: Counting characters in a buffer Pin
yaname10-Apr-03 3:29
yaname10-Apr-03 3:29 
GeneralRe: Counting characters in a buffer Pin
Overfiend10-Apr-03 20:35
Overfiend10-Apr-03 20:35 
QuestionHow to ignore Window activate ? Pin
rrrado10-Apr-03 2:19
rrrado10-Apr-03 2:19 
AnswerRe: How to ignore Window activate ? Pin
imsniper11-Apr-03 0:41
imsniper11-Apr-03 0:41 
AnswerRe: How to ignore Window activate ? Pin
imsniper11-Apr-03 1:00
imsniper11-Apr-03 1:00 
GeneralRe: How to ignore Window activate ? Pin
rrrado11-Apr-03 3:20
rrrado11-Apr-03 3:20 
Generaltypedef declaration Pin
Rage10-Apr-03 0:51
professionalRage10-Apr-03 0:51 
GeneralRe: typedef declaration Pin
Zdeslav Vojkovic10-Apr-03 1:55
Zdeslav Vojkovic10-Apr-03 1:55 
GeneralCryptographic Service Pin
YaronNir10-Apr-03 0:48
YaronNir10-Apr-03 0:48 

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.