[HELP] I got error message, when I tried to parse XML on PocketPC
-
I writen a application on Microsoft Mobile5.0 Pocket PC. Parts of my code as below. I create my own ISAXXMLContentHandler implementation class, and it used to handle my XML file ("\ori.xml").
I initiate XML reader as below.
And my XML content handler class's constructor and destructor as below.
However, when I call XML reader's parseURL() function in first picture, I got an error message as below.
The error message's detail as below.
I don't know what happen? and I don't know how to solve it? Does anyone can help me to solve it? Alger, Lin
-
I writen a application on Microsoft Mobile5.0 Pocket PC. Parts of my code as below. I create my own ISAXXMLContentHandler implementation class, and it used to handle my XML file ("\ori.xml").
I initiate XML reader as below.
And my XML content handler class's constructor and destructor as below.
However, when I call XML reader's parseURL() function in first picture, I got an error message as below.
The error message's detail as below.
I don't know what happen? and I don't know how to solve it? Does anyone can help me to solve it? Alger, Lin
you need to show us the exception information - scroll err2.jpg down a bit...
"When the only tool you have is a hammer, a sore thumb you will have."
-
you need to show us the exception information - scroll err2.jpg down a bit...
"When the only tool you have is a hammer, a sore thumb you will have."
I got frames of error messages as below. http://home.pchome.com.tw/funny/alger_lin/Codes/err.JPG[^]
-
I got frames of error messages as below. http://home.pchome.com.tw/funny/alger_lin/Codes/err.JPG[^]
can you not copy the error text to the clipboard? we need the text from: Exception Information =====================
"When the only tool you have is a hammer, a sore thumb you will have."
-
can you not copy the error text to the clipboard? we need the text from: Exception Information =====================
"When the only tool you have is a hammer, a sore thumb you will have."
Thanks for your attention, I found the reason of this problem yesterday. It's not a technical issue, it just because I made a stupid mistake :~ As the code below, I invoke InitReader() function to create and initiate my XML reader. I pass a pointer of ISAXXMLReader into this function, this variable is xReader_Ori. http://home.pchome.com.tw/funny/alger_lin/Codes/code1.JPG[^] And in the InitReader(), I pass the inputed ISAXXMLReader pointer into CoCreateInstance() to receive the instance of ISAXXMLReader. However, the xReader parameter is a copy of xReader_Ori, the xReader was represented the ISAXXMLReader's instance after invoke CoCreateInstance(), but the xReader_Ori was not be modified at the same time. So, it cause some error when I called xReader_Ori's parseURL() function, because it's nothing :doh: http://home.pchome.com.tw/funny/alger_lin/Codes/code2.JPG[^] Now, I modified my InitReader()'s definition, I define it as
HRESULE InitReader(ISAXXMLReader*& xReader)
. And it work smoothly now :laugh: