[ocaml-ctypes] Lifecycle of a callback?
Trevor Smith
trevorsummerssmith at gmail.com
Thu Oct 23 11:48:20 BST 2014
Following up on the earlier conversation of using c-based accessors:
I tried this out this morning. However I am seeing strange behavior with
the memory addresses. In native code, whenever I pass a pointer through the
accessor I receive a different address than the original address --
however, in valgrind the addresses are the same.
Relevant code:
git clone git at github.com:trevorsummerssmith/ocaml-libuv.git && cd
ocaml-libuv && git checkout origin/test-lifecycle && make tests
I see, eg:
loop: 0x109d76800
Handle: 0x9d76800
Handle: 0x9d76800
F.
==============================================================================
Failure: handle suite:0:accessors
The loop address always starts with '10'. However in valgrind the addresses
are the same.
The c accessors are in lib_gen/lib_accessors.c, the test is in test/
test_handle.ml
Thoughts on this? Thanks!
Trevor
On Tue, Oct 21, 2014 at 11:05 AM, Jeremy Yallop <yallop at gmail.com> wrote:
> On 21 October 2014 16:01, Trevor Smith <trevorsummerssmith at gmail.com>
> wrote:
> > Jeremy is there an eta for 0.4?
>
> There's no ETA, but there is a list of outstanding issues:
>
> https://github.com/ocamllabs/ocaml-ctypes/milestones/ctypes%200.4
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/ctypes/attachments/20141023/bc86f62d/attachment.html>
More information about the Ctypes
mailing list