|
From: Harbhanu <har...@hu...> - 2007-05-17 05:11:04
|
In my case the value of "offset" variable is not getting incremented...in the while loop...so its eventually leading to an out of bound access of array "s"... Does this have to do anything with endianness...?? Ps: I have to set BIG_ENDIAN macro value to 0 .if my system is little endian... right ? -----Original Message----- From: Jimmy Zhang [mailto:cra...@co...] Sent: Thursday, May 17, 2007 12:14 PM To: Harbhanu Cc: vtd...@li... Subject: Re: Problem with ..toRawString2 Can't verify the issue, toRawString2 seems to work for me... toRawString2 is called within toRawString(...)... which offset value did you incrment? ----- Original Message ----- From: "Harbhanu" <har...@hu...> To: "'Jimmy Zhang'" <cra...@co...> Cc: <vtd...@li...> Sent: Tuesday, May 15, 2007 11:28 PM Subject: Problem with ..toRawString2 > Hi, > I am trying to use the cursor apis to traverse the xml document.. > But its crashing the system..when I call "toRawString" for a particular > index... > > It seems the crash is due to the code in "toRawString2" .. the offset > value > is not getting incremented > > I tried changing the offset modification logic to "offset++" and it > worked... > Please let me know if it is a defect or something wrong from my part. > > Regards, > Harbhanu > > > |