From: Victor Porton <porton@narod.ru>
Subject: Help me to find an error
Date: Sat, 02 Aug 2014 23:43:07 +0300
Date: 2014-08-02T23:43:07+03:00 [thread overview]
Message-ID: <lrjigo$qt5$1@speranza.aioe.org> (raw)
I am writing open source Ada2012 bindings for Raptor library (it is about
semantic Web).
My AUnit test case shows that there is an error.
The error is that the `Write(Str, Out_String);`
(src/test/iostreams_test.adb:32) operator does not appends data to
Out_String object. The bounded string inside Out_String object remains empty
and this leads to an error.
My dispatching procedure Do_Write_Bytes (defined in src/rdf-raptor-
iostream.adb:414) is not called an I don't understand why.
Note that in src/rdf-raptor-iostream.ad:345 I create an object holding a
raptor_iostream* C handler and pass the access to the object itself to the C
library as user_data parameter, in order to make dispatching calls
afterward. The callbacks I pass to the C raptor_new_iostream_from_handler
function are just wrappers which call my object (reconstructed from the
user_data parameter) dispatching methods.
Please help to understand the reason of the error. This will help not only
to Raptor itself but also for my bigger project which I am going implement
in Ada, X-former: http://freesoft.portonvictor.org/namespaces.xml - so your
help would help to essentially advance free software.
My source is located at
https://github.com/vporton/redland-bindings/tree/ada2012/ada
Please ask me any questions.
--
Victor Porton - http://portonvictor.org
next reply other threads:[~2014-08-02 20:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-02 20:43 Victor Porton [this message]
2014-08-03 21:36 ` Help me to find an error Victor Porton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox