FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tango 0.99.4 error with mango SAX
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Sat Jan 12, 2008 9:55 am    Post subject: Tango 0.99.4 error with mango SAX Reply with quote

Start element: collection
Start element: description

Data:
Some recipes used for the XML tutorial.

End Data
End: description
Start element: recipe

Data: <title>Beef Parmesan with Garlic Angel Hair Pasta</title>]]>
<ingredient name="beef cube steak" amount="1.5" unit="pound"/>
<preparation>
<step>
Preheat oven to 350 degrees F (175 degrees C).
</step>
</preparation>
<comment>
Make the meat "ahead of time&quot;, & refrigerate over night, the acid in the
tomato sauce will tenderize the meat even more. If you do this, save the
mozzarella till the last minute. tango.core.Exception.ArrayBoundsException@mango.xml.sax.parser.teqXML(521): Array index out of bounds
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Sun Jan 13, 2008 7:49 am    Post subject: Reply with quote

I use digital mars 1.024
Back to top
View user's profile Send private message
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Sun Jan 13, 2008 7:51 pm    Post subject: Reply with quote

I can't replicate... what code are you running, and which xml file is it using as input?
Back to top
View user's profile Send private message Send e-mail AIM Address
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Mon Jan 14, 2008 5:23 am    Post subject: Reply with quote

I use the samples; and en application with SimpleXMLD.
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Mon Jan 14, 2008 5:37 am    Post subject: Reply with quote

It's work at my IUT, I don't know why this doesn't work at house
Back to top
View user's profile Send private message
od



Joined: 08 Feb 2008
Posts: 2

PostPosted: Sat Feb 09, 2008 5:32 pm    Post subject: Reply with quote

Same here:
http://www.dsource.org/projects/mango/ticket/31

@xxltux: Maybe also using a 64bit system?
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Sun Feb 10, 2008 5:21 am    Post subject: Reply with quote

No, it's an PIV in 32bits on NT5. But I don't know why this doesn't work on my computer and this work perfectly in iut.

Do you want the exe?
Back to top
View user's profile Send private message
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Sun Feb 10, 2008 2:44 pm    Post subject: Reply with quote

od wrote:
Same here:
http://www.dsource.org/projects/mango/ticket/31


A test case- great. Just checked in a fix, so please give it a shot.

@xxltux... Does this fix your issue as well?
Back to top
View user's profile Send private message Send e-mail AIM Address
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Sun Feb 10, 2008 3:04 pm    Post subject: Reply with quote

The sample work perfectly but my application not.

533 throw new TeqXMLException(
534 "Cannot resolve entity '" ~ ent ~ "'");

If the ent is in dchar, this doesn't work?
Back to top
View user's profile Send private message
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Sun Feb 10, 2008 3:13 pm    Post subject: Reply with quote

xxltux wrote:
The sample work perfectly but my application not.

533 throw new TeqXMLException(
534 "Cannot resolve entity '" ~ ent ~ "'");

If the ent is in dchar, this doesn't work?


Oops... forgot about that. Just put in a fix for that
Back to top
View user's profile Send private message Send e-mail AIM Address
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Sun Feb 10, 2008 3:15 pm    Post subject: Reply with quote

At 10PM, it's normal
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Mon Feb 11, 2008 4:28 am    Post subject: Reply with quote

why don't define an function like :

char[] toString(char[] retVal)
{
return retVal;
}
Back to top
View user's profile Send private message
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Mon Feb 11, 2008 7:22 am    Post subject: Reply with quote

Because it'd have to me in the module as the other toString call, and I don't/can't mess around with Tango modules. You might suggest it to them.
Back to top
View user's profile Send private message Send e-mail AIM Address
od



Joined: 08 Feb 2008
Posts: 2

PostPosted: Mon Feb 11, 2008 11:42 am    Post subject: Reply with quote

Thank you for fixing! Works pretty fine now.
Back to top
View user's profile Send private message
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Mon Feb 11, 2008 12:53 pm    Post subject: Reply with quote

what would be the purpose of

char[] toString(char[])

?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group