Re: Getting object code directly from code server

Lukas Larsson <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAP3zBqPEmjcynadyuFmP0HwSmfXWeCF4tNULTz++DK+rq6L4Bg@mail.gmail.com>
Hello!

No, it is not possible because after the beam code is loaded it is not kept
in memory, and it is not possible to re-create the original beam code from
the loaded code.

So if you need to keep track of dynamically created code, you need to build
something yourself that does that.

Lukas

On Wed, Sep 1, 2021 at 8:57 AM Devon Estes <[email protected]> wrote:

> Hello all,
>
> Is it at all possible to get the current object code for a module directly
> from the code server? `code:get_object_code/1` returns information from the
> beam files in the code path and not from the code server itself, and so if
> there are modules that are dynamically compiled and loaded with
> `code:load_binary/3` that doesn't work.
>
> Cheers,
> Devon
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.