|
|
| Author |
Message |
< Erlang ~ Erlang / register - bad argument |
| gene9 |
Posted: Fri Aug 22, 2008 12:29 pm |
|
|
|
Joined: 22 Aug 2008
Posts: 3
|
I have a problem with register/2, what might be wrong with such kind of code?
Code:
...
receive
{Pid, ok} when is_atom(Name), is_pid(Pid) ->
register(Name, Pid),
{ok, Pid};
{Pid, error} ->
{error, Pid}
end;
...
It fails with
Code:
** exception error: bad argument
in function register/2
called as register('PS8000',<0.58.0>)
in call from test1:start_server/0
in call from test1:test_s/0
|
|
|
| Back to top |
|
| Mazen |
Posted: Fri Aug 22, 2008 1:45 pm |
|
|
|
User
Joined: 20 Jul 2006
Posts: 164
Location: London
|
Have you checked these reasons:
Documentation says (http://www.erlang.org/doc/man/erlang.html):
Quote:
...
Failure: badarg if Pid is not an existing, local process or port, if RegName is already in use, if the process or port is already registered (already has a name), or if RegName is the atom undefined.
...
/M |
|
|
| Back to top |
|
| gene9 |
Posted: Fri Aug 22, 2008 1:51 pm |
|
|
|
Joined: 22 Aug 2008
Posts: 3
|
Thank you! It seems like I accidentally skipped these part while searching the cause of the problem in the documentation.  |
|
|
| Back to top |
|
| wuji |
Posted: Fri Aug 17, 2012 6:59 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
fair start," said Hubbard in a statement to ABC News."We News."We cheap replica *beep* News."We can find no evidence that there was any wrongdoing
our starting-gate crew," added Hubbard. "We also want to make make cheap replica *beep* make it clear that we have totally cooperated with the
investigation and will continue to offer support for this investigation."One investigation."One cheap jordans investigation."One of the confidential informants also alleged in the affidavit
his horses had competed against horses belonging to Omar Trevino Trevino [h2]cheap replica *beep*[/h2] Trevino Morales, AKA 42, in Mexico but that 42's horses
always win because of CI #1's knowledge that '42' would would [h3]cheap polo shirts[/h3] would get upset at a loss and most likely kill
opponent as a result."A third confidential informant allegedly stated that that cheap Ralph Lauren that in 2007, in Monclova, Mexico, an individual named Triana
entered his own rooster in a cockfight against a rooster rooster [h3]cheap polo shirts[/h3] rooster owned by 42. Triana's rooster won. "Approximately 15 days
the rooster fight," alleged CI #3, "'42' had Triana killed killed cheap replica *beep* killed because '42's' rooster had lost the fight."Miguel Angel Trevino |
|
|
| Back to top |
|
| dongdongwu |
Posted: Thu Sep 20, 2012 3:32 am |
|
|
|
User
Joined: 19 Sep 2012
Posts: 236
|
His good friend Diane said: "Christian Louboutin Men Shoes was a magician, he make shoes is immediately put his female people with legs and advantage. He understands women wanted to do and can make them into beautiful Cinderella." Madonna often in its concert wearing Christian louboutin high heels , and some famous superstar like Angelina jolie, mariah Carey, beyonce Knowles, the famous Japanese singer YaYouMei Hamasaki helps Christian Louboutin Men Shoes set up its powerful position. The youngest customers will count Tom cruise's daughter sully cruz. Louboutin made for only a pair of handmade Christian Louboutin high heel Shoes! Want to be more fashion? Put on Christian Louboutin Outlet !
Candy colors of the chalaza high-heeled shoes with lolita type allure, set full finely gem blue "neon shoes" is to need to use "sexy" to describe. Each pair are worth careful appreciation of lithe and graceful fairy ludaoli, what kind of most let you move?Christian Louboutin Men Shoes that one brush red is always cannot resist the temptation, Christian Louboutin men outlet continue to use the days of high 8cm above slender heel proclaim the sexy and luxuriant. The bowknot on black pointed high-heeled shoes with sharp rivet concomitant, wild python met enchanting color printing grain, It is that pairs of high-heeled shoes lets Carrie more feminine flavour. Like Christian Louboutin for men her word. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|