Erlang application stop freezes when mnesia stops from program

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

+5
source share
2 answers

systools , mnesia . , legoscia. erlang. .

+2

erlang:

dump_to_textfile ( ): mnesia , ( ), mnesia: load_textfile/1. . .

+1
source

All Articles