Re: Janitor

2004-03-15 Thread Berin Lautenbach
--- From: Berin Lautenbach [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 11:30 AM To: [EMAIL PROTECTED] Subject: Re: Janitor Milan, THey should not be throwing an exception - that's really basic stuff! What version of Xerces are you using? I know there were some problem

RE: Janitor

2004-03-15 Thread Milan Tomic
-- OK --- Best regards, Milan > -Original Message- > From: Berin Lautenbach [mailto:[EMAIL PROTECTED] > Sent: Monday, March 15, 2004 11:30 AM > To: [EMAIL PROTECTED] > Subject: Re: Janitor > > > Milan, > > THey should not be throwing an ex

Re: Janitor

2004-03-15 Thread Berin Lautenbach
Milan, THey should not be throwing an exception - that's really basic stuff! What version of Xerces are you using? I know there were some problems with 2.4? Cheers, Berin Milan Tomic wrote: Berin, I belive I've found it. :-) I've copied those three lines of code: DOMNode *x509Nod

RE: Janitor

2004-03-15 Thread Milan Tomic
Berin, I belive I've found it. :-) I've copied those three lines of code: DOMNode *x509Node = findDSIGNode(doc, "X509Certificate"); XMLString::transcode(x509Node->getTextContent()); XMLString::transcode(x509Node->getTextContent());//exception After this line: sig->load(

RE: Janitor

2004-03-15 Thread Milan Tomic
Berin, > Are you able to provide a small piece of code that reproduces the > problem? Happy to have a look-see! Thank you, I'll try to make small example and to send it to you. I've done some debugging and found out that under Debug mode it fails to allocate memory. This is one example (DOMDocu

Re: Janitor

2004-03-12 Thread Berin Lautenbach
atic MFC link, because of smaller deployment binaries size. However, I've built my app with "Multithreaded DLL" option and still same errors persists. My app crashes (exe diseapear from the screen, try/catch block doesn't help) on this line: delete parser; //delete Xerces The same thi

RE: Janitor

2004-03-11 Thread Milan Tomic
ded DLL" option and still same errors persists. My app crashes (exe diseapear from the screen, try/catch block doesn't help) on this line: delete parser; //delete Xerces The same thing is when I use Janitor to delete Xerces. I've found only few XML documents that "causes" thi

Re: Janitor

2004-03-11 Thread Berin Lautenbach
confused) Cheers, Berin Milan Tomic wrote: Berin, Thank you very much for your help. 3. I am used a different memory model in my app from Xerces (Runtime in a DLL) as the Janitor then uses it's runtime library to delete an object created by a different runtime library. I b

RE: Janitor

2004-03-11 Thread Milan Tomic
Berin, Thank you very much for your help. > 3. I am used a different memory model in my app from Xerces > (Runtime in > a DLL) as the Janitor then uses it's runtime library to > delete an object > created by a different runtime library. I belive this is a problem

Re: Janitor

2004-03-11 Thread Berin Lautenbach
Milan, I've seen crashes like this when : 1. I had had forgotten about the Janitor and deleted the parser instance previously in the code. 2. When I had deleted something the parser owned, and thus when the parser was deleted it tried to re-delete whatever I had already done. 3. I am

Janitor

2004-03-10 Thread Milan Tomic
Title: Janitor     I had this code: try {   //more code here...     XercesDOMParser * parser = new XercesDOMParser;   Janitor j_parser(parser);   //more code here...   //my app crashes here } catch (...) {   //never come here } //never come here     My app crashes (not allways