[erlang-questions] otp.net

Serge Aleynikov <>
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
() and connecting to a regular Erlang node 
(), then send a Pid from .NET to Erlang and try to set up a 
monitor.  The monitor call fails with badarg:

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

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?

Serge



More information about the erlang-questions mailing list