Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCallback in C++ to invoke object in MC++ Pin
Elf17-Oct-02 20:56
Elf17-Oct-02 20:56 
GeneralRe: Callback in C++ to invoke object in MC++ Pin
Alexandru Savescu17-Oct-02 23:53
Alexandru Savescu17-Oct-02 23:53 
GeneralUnable to set Japanese strings .. Pin
Neha17-Oct-02 20:48
Neha17-Oct-02 20:48 
GeneralRe: Unable to set Japanese strings .. Pin
Roger Stewart18-Oct-02 11:47
professionalRoger Stewart18-Oct-02 11:47 
Generalmemory access violation with linked-list Pin
tongc17-Oct-02 20:18
tongc17-Oct-02 20:18 
GeneralRe: memory access violation with linked-list Pin
Paul M Watt17-Oct-02 20:37
mentorPaul M Watt17-Oct-02 20:37 
GeneralRe: memory access violation with linked-list Pin
tongc17-Oct-02 20:42
tongc17-Oct-02 20:42 
Generalfreeing memory for a new xml document allocated with new... Pin
Joan M17-Oct-02 20:04
professionalJoan M17-Oct-02 20:04 
Hello,

In CMyClass I have those members:
<br />
private:<br />
MSXML2::IXMLDOMDocumentPtr	m_pxmlDoc;<br />
MSXML2::IXMLDOMNodeListPtr	m_pxmlLlistaNodes;<br />
MSXML2::IXMLDOMNodePtr		m_pxmlNode;<br />


I allocate memory for the document in this way:
<br />
this->m_pxmlDoc = new MSXML2::IXMLDOMDocumentPtr("MSXML2.DOMDocument.4.0");<br />


and in my ~CMyClass (the destructor of my class) I try to deallocate it using:
<br />
this->m_pxmlDoc->Release();<br />
delete this->m_pxmlDoc;  // Here I get an error (memory exception)...<br />


Could you give me an advice on how to deallocate that memory?

thank you in advance...
GeneralRe: freeing memory for a new xml document allocated with new... Pin
Paul M Watt17-Oct-02 20:30
mentorPaul M Watt17-Oct-02 20:30 
GeneralRe: freeing memory for a new xml document allocated with new... Pin
Joan M18-Oct-02 8:56
professionalJoan M18-Oct-02 8:56 
GeneralVisual C++ MFC Pin
Shailaja117-Oct-02 17:46
Shailaja117-Oct-02 17:46 
GeneralRe: Visual C++ MFC Pin
Christian Graus17-Oct-02 17:58
protectorChristian Graus17-Oct-02 17:58 
GeneralRe: Visual C++ MFC Pin
Shailaja119-Oct-02 8:23
Shailaja119-Oct-02 8:23 
GeneralRe: Visual C++ MFC Pin
Christian Graus19-Oct-02 12:41
protectorChristian Graus19-Oct-02 12:41 
GeneralTray icon Pin
Hiusing17-Oct-02 17:40
Hiusing17-Oct-02 17:40 
GeneralRe: Tray icon [edit] Pin
Paul M Watt17-Oct-02 18:22
mentorPaul M Watt17-Oct-02 18:22 
GeneralBasic C question! Pin
Anonymous17-Oct-02 13:25
Anonymous17-Oct-02 13:25 
GeneralRe: Basic C question! Pin
Christian Graus17-Oct-02 13:32
protectorChristian Graus17-Oct-02 13:32 
GeneralRe: Basic C question! Pin
Anonymous17-Oct-02 13:49
Anonymous17-Oct-02 13:49 
GeneralRe: Basic C question! Pin
Christian Graus17-Oct-02 14:04
protectorChristian Graus17-Oct-02 14:04 
GeneralRe: Basic C question! Pin
Michael Dunn17-Oct-02 15:07
sitebuilderMichael Dunn17-Oct-02 15:07 
GeneralRe: Basic C question! Pin
Daniel Turini17-Oct-02 22:18
Daniel Turini17-Oct-02 22:18 
GeneralRe: Basic C question! Pin
Scott H. Settlemier18-Oct-02 18:41
Scott H. Settlemier18-Oct-02 18:41 
Generaltype of file to open Pin
Steve L.17-Oct-02 12:20
Steve L.17-Oct-02 12:20 
GeneralRe: type of file to open Pin
Shog917-Oct-02 12:35
sitebuilderShog917-Oct-02 12:35 

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.