Skip to content

Calling init in dll causes heap corruption #3

Open
@coodeneko

Description

@coodeneko

I'm embedding zphysics into a dll for some experimenting. When done in the exe itself there is no issue but in the dll I am getting heap corruption.

It's originating somewhere in the JPH_IMPLEMENT_SERIALIZABLE_NON_VIRTUAL(SkeletalAnimation) macro but I haven't a chance to dig into it too much.

It's somewhere deep in mingw's

int __cdecl atexit (_PVFV func)
{
    return _register_onexit_function(&atexit_table, (_onexit_t)func);
}

Curious if anyone else has had much success or ran into this issue. I might dig into it more or I might rework my architecture around this and pass necessary info back into the dll as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions