Browse thread
[Caml-list] CamlDL/Abstract pointers problem
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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. Reference: http://pauillac.inria.fr/~doligez/caml-guts/Fahndrich99.txt -- Alain ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners