Hi Harshabi,

The line in your email and in your code snippet won't match. Which line
are you using in your program:

Is it (this is from the code snippet that you sent in your later email)

((xercesc::DOMNode*)LNodeFileAddedElement)->removeChild(LNodeFileAddedEl
ement->item(1));


Or 

LNodeFileAddedElement->removeChild(LNodeAddedFileList->item(1));        


You are calling item() method on a DOMNode pointer in the previous one.
Does this thing even compile?

Cheers,


-Ozgur Sahoglu



-----Original Message-----
From: harshabi [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2008 8:08 PM
To: [email protected]
Subject: Re: Deleting a node in the memory...


Thx for all the help,
I did put it in the debugger and execute the code...
I am getting the following error
Unhandled exception at 0x12092ac1 in FolderEquality.exe: 0xC0000005:
Access
violation reading location 0x00000000.
and it points to the statement
LNodeFileAddedElement->removeChild(LNodeAddedFileList->item(1));
Can you
please provide me an example where this removeChild() is usede?? There
could
be something that i have not done like allocate memory to some
object..... I
searched the forums for questions regarding removeChild(), I could'nt
find
many.. so Please help me..


Alberto Massari wrote:
> 
> It's hard to guess from here what's going on in your code (seeing just

> three lines of it); you should really start adding try/catch statement

> to gracefully handle error conditions, and running your program inside
a 
> debugger to realize the flow of your code.
> 

-- 
View this message in context:
http://www.nabble.com/Deleting-a-node-in-the-memory...-tp16093767p161134
62.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to