[erlang-questions] gen_server noproc when trying to stop

Vlad Dumitrescu vladdu55@REDACTED
Sun Apr 20 16:36:14 CEST 2008


Hi,

On Sun, Apr 20, 2008 at 4:26 PM, db <masterofquestions@REDACTED> wrote:

> Can someone tell me why can't stop the gen_server?
>
> start()->
>    gen_server:start_link({global, ?SERVER}, ?SERVER, [],[]).
>
> stop()->
>    gen_server:call(?SERVER, stop).
>
> Try

stop()->
   gen_server:call({global, ?SERVER}, stop).

best regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080420/6fd1b2b7/attachment.htm>


More information about the erlang-questions mailing list