On Sun, 14 Dec 2014 16:24:13 +0000
Gabor Mezo via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> On Sunday, 14 December 2014 at 16:06:25 UTC, Martin Nowak wrote:
> > On 12/14/2014 03:50 PM, Gabor Mezo wrote:
> >> Hello,
> >>
> >> I've created a simple db dynamic lib project.
> >
> > https://github.com/D-Programming-Language/dub/issues/352
> 
> Thanks,
> 
> I've did this, it finally build, but something is still not good.
> 
> If I call externals from another application, and my D code 
> allocates anything on heap, the calling process crashes with 
> SIGSEV.
did you called `rt_init()` for your dynamic library? you have to do
that in the calling process. and don't forget to call `rt_term()` on
exiting.

Attachment: signature.asc
Description: PGP signature

Reply via email to