unable to reconnect to server
Mon Jan 31 13:04:36 CET 2005
Dietmar Schaefer wrote:
> When I terminate the client and try to start it again I get
> Error in process <0.322.0> on node 'cmmc@REDACTED' with exit value:
> What has erlang:register to do with that ?
your code tries to reuse/re-register test. this is what the manual says
(look for Failure):
Associates the name Name with the port or pid P. Name, which must be an
atom, can be used instead of a port or pid in the send operator (Name !
Failure: badarg if P is not an active port or process, if P is on
another node, if Name is already in use, if the port or process is
already registered (already has a name), if Name is not an atom, or if
Name is the atom undefined.''
in your code test is already in use. do a
before registering. note that it is an error if Name is not the name of
More information about the erlang-questions