Skip to content

Static ruleset in dynamically loaded library #11

Description

@zacharycarter

Hi Zach!

Another Zach here, with a question for you about pararules - but before that, thanks for your time, hard work and dedicated sense of humor - they has made exploring pararules and paranim a enjoyable and learning-filled experience.

Onto my question - I am trying to leverage staticRuleset inside of a Nim module that I am compiling to a shared library and loading / unloading at runtime. Everything is compiling fine, but when I try to invoke initSession in a function I invoke after my shared library is loaded, I encounter a segfault.

I'm guessing this is not really possible to achieve with staticRuleset - is that correct? If so, no biggie - I can always use staticRuleset when producing release builds of my project where I don't depend on loading and unloading plugins at runtime and statically link instead.

Thanks ahead of time for your help!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions