[erlang-bugs] Re: erl_interface and threads

Michael Santos michael.santos@REDACTED
Thu Apr 7 19:08:37 CEST 2011


On Thu, Apr 07, 2011 at 09:53:05AM +0200, Benjamin Winkler wrote:
> Hi!
>
> We are using Erlang and specifically the erl_interface for C (Visual  
> Studio C++ 2008, Windows 7) to connect to our Erlang servers. We have  
> noticed weird errors when creating (and freeing) terms in different  
> threads. It seems to me that the memory allocation module is not  
> thread-aware.

This isn't helpful with solving your problem with erl_interface but
have you looked at the newer ei interface? It lets you manage the memory
yourself (or allocates memory for you if you use the ei_x_* functions).

The documentation is here:

http://www.erlang.org/doc/man/ei.html



More information about the erlang-bugs mailing list