I have a problem where I cannot stop mnesia inside my program without causing the application to freeze.
I am currently doing mnesia prototyping in my erlang application.
In my file, jaus_app.erl start () calls:
{atomic, ok} = mnesia:load_textfile("priv/mnesia_prototype.txt")
The call to the stop () function:
mnesia:dump_to_textfile("priv/mnesia_prototype_res.txt"),
mnesia:stop(),
When I comment on these lines and start and stop mnesia from the erlang prompt, I can completely terminate my application.
Shouldn't these prototypes be used in a full erlang app?
Ken
source
share