[erlang-questions] otp.net

Serge Aleynikov saleyn@REDACTED
Fri Oct 3 04:32:37 CEST 2008

While playing with the otp.net project for the past several days I ran 
into one problem that I can't quite explain.  I am starting a .NET node
(saleyn@REDACTED) and connecting to a regular Erlang node 
(a@REDACTED), then send a Pid from .NET to Erlang and try to set up a 
monitor.  The monitor call fails with badarg:

(a@REDACTED)2> register(test, self()).
(a@REDACTED)3> nodes(hidden).
(a@REDACTED)4> f(M), M = receive M -> M end.
(a@REDACTED)5> M ! {hello, self()}.
(a@REDACTED)6> erlang:monitor(process, M).
** exception error: bad argument
      in function  erlang:monitor/2
         called as erlang:monitor(process,<5852.1.0>)

I am able to send messages back and forth between two nodes and verify 
their delivery, but don't understand why the monitor call would fail. 
Does anyone have a clue?


More information about the erlang-questions mailing list