Article View: comp.sys.mac.programmer.codewarrior
Article #872Re: Xerces + Mac + unmapped memory exception
From: Jedidja Bourgeois
Date: Mon, 06 Jan 2003 15:48
Date: Mon, 06 Jan 2003 15:48
27 lines
2281 bytes
2281 bytes
We switched from using Xerces to expat on the pc because expat ran many times faster. It was pretty easy to switch, actually -- the structure of the callbacks from both libraries are pretty similar. Btw, expat runs just fine on the mac in case you're curious :) RK wrote: > Hi, > > I am using Xerces port for Mac from Apache. It's not an official port > though. > > I am extracting DOMNodeLists for 4 different tags from a DOM document. > I know these DOMNodeLists are "live" (pointers to the DOM tree). I am > not changing anything, and am just getting some information out of > those lists. > > But, the behaviour is not as expected. I get "unmapped memory > exception" on the 2nd "doc->getElementByTagName(tag)" statement. I > don't know why that (memory corruption) happens. Either there is a > problem with my understanding of the usage of Xerces or there's a > serious problem with Xerces on Mac. > > Could someone please help me here? I had decided to use Xerces for XML > parsing in my project and it would be hard to back out. > > Thanks, > RK
Technical Details
Message-ID:
<%AhS9.1278$Af2.262617@news20.bellglobal.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mailReferences:
<389ca595.0301060047.4034bfed@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,d5669dc6e8f7338c X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,d5669dc6e8f7338c X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2003-01-06 07:55:47 PST From: "Jedidja Bourgeois" <jedidjab79@hotmail.com> Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac References: <389ca595.0301060047.4034bfed@posting.google.com> Subject: Re: Xerces + Mac + unmapped memory exception Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Forwarded: by - (DeleGate/8.1.0) Message-ID: <%AhS9.1278$Af2.262617@news20.bellglobal.com> Date: Mon, 6 Jan 2003 10:48:55 -0500 NNTP-Posting-Host: 64.230.91.212 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1041868219 64.230.91.212 (Mon, 06 Jan 2003 10:50:19 EST) NNTP-Posting-Date: Mon, 06 Jan 2003 10:50:19 EST Organization: Bell Sympatico Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail