<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I forgot to mention that if I comment out mnesia:stop() from the stop function of the app so that it looks like this:<div><br></div><div><div>stop(_State) -></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>%% mnesia:stop(),</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>ok.</div><div><br></div><div>the app shuts down perfectly fine. I can then enter mnesia:stop() into the console and it will immediately shut down as if nothing is wrong. The freezing up only happens when I try to call mnesia:stop() (or application:stop(mnesia)) from within the applications stop function.</div><br><hr id="stopSpelling">From: silent_vendetta@hotmail.com<br>To: erlang-questions@erlang.org<br>Date: Thu, 28 Apr 2011 20:35:36 -0700<br>Subject: [erlang-questions] Can't shut down Mnesia from within application<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
Hello all,<div><br></div><div>I've got an application which, in it's start function, calls mnesia:start() before starting the top level supervisor. The only thing I'm doing with Mnesia at the moment is working with a single ram-copies table. In the stop function of the same application I call mnesia:stop(). At that point I shouldn't have any transactions or anything going on, but Mnesia simply hangs and I can't do anything but shut the Erlang VM down and restart it again. Any ideas what might be going on or where I should look?</div><div><br></div><div>Chris Hicks.</div>
<br>_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions</div> </body>
</html>