Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] CamlDL/Abstract pointers problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-01-29 (19:56)
From: Alain.Frisch@e...
Subject: Re: [Caml-list] CamlDL/Abstract pointers problem
On Thu, 29 Jan 2004, Richard Jones wrote:

> I'm pretty sure this bit of the manual is wrong, or at least I've not
> been able to make it work.  I don't have any definite proof of this,
> but my crashes stopped once I started wrapping up pointers in
> Abstract_tag.

One important thing to be aware of when you use "foreign" pointers is
that the Caml GC heap can grow at any time and span over existing
pointers. So you have to be careful to null foreign pointers when you free
the block they're pointing to.


-- Alain

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: