2 erl_interface questions

olivier <>
Thu Jan 12 12:21:29 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


	Hello,

	I have two questions about the C linked-in port drivers:

1. What is the difference between -lerl_interface_st -lei_st and
the versions without "_st" ?

2. With R10B-9 (R10B-8 also), I use the erl_* and ei_* functions
to encode/decode terms on the C side. As per the documentation,
I use:

	/* Initialize erl_interface.
	 * XXX erl_init seems to block indefinitly. */
	erl_init_malloc(NULL, 0);

But, as the comment says, erl_init() blocks when initializing the
driver. A workaround we found was to replace erl_init with:

	erl_init_marshal();
	ei_init_resolve();

and it works just fine. Any suggestion ?

	Thanks in advance,

- --
Olivier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDxju5pqVXaJzJYNIRAqkNAJ9pBDZhYpmXfo74bCXjFxwoSOivIgCbBelu
emc4hf5VuFR2pKxx6Vq1J6w=
=QMZl
-----END PGP SIGNATURE-----



More information about the erlang-questions mailing list