On Tue, August 12, 2014 18:24, Tomas By wrote: > I tried to copy the "register_displacements" from "t.m", and call that > just before "mercury_init", but it made no difference (my app crashes > quickly). Just after mercury_init. Anyway, thanks for the help so far. /Tomas