Browse thread
[Caml-list] Opaque pointers with camlidl
-
Michael Tucker
- Jacques Garrigue
-
Yaron M. Minsky
- Michael Tucker
- Olivier Andrieu
[
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: | Olivier Andrieu <andrieu@i...> |
| Subject: | Re: [Caml-list] Opaque pointers with camlidl |
Yaron M. Minsky [ 17 July 2002] :
> For what it's worth, I have written a small berkeley DB interface (for
> version 3.3.11, the one found in RH 7.3), which I've attached to this
> email.
Hi,
At the beginning, of your stub I noticed this :
static void finalize_caml_dbenv(value dbenv) {
CAMLparam1(dbenv);
caml_dbenv_close_internal(dbenv);
CAMLreturn0;
}
I think it's not a good idea to use CAMLparam* in the finalisation
function. IIRC, the manual explicitly says not to.
--
Olivier
-------------------
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