[erlang-questions] ERTS; code-server; dynamically loading of code

Lennart Öhman <>
Sun Sep 17 19:00:40 CEST 2006


Hi, hope you know what your are doing :-)

When a function can not be found, a function in the module error_handler
is called in the context of the process wishing to execute the
non-existing function. The code in the error_handler communicated with
the code_server process (implemeneted in code) which implements the
dynamic code loading. Read those modules and you will understand.

Further more it is possible as a process flag to set which module
shall be error_handler. In this way one can actually make certain
parts of a system load code differently.

Good luck,
Lennart


-----Original Message-----
From: 
[mailto:] On Behalf Of Matthias
Kretschmer
Sent: den 17 september 2006 16:02
To: 
Subject: [erlang-questions] ERTS; code-server; dynamically loading of code

Hello,

I am searching for a way, to do my own code loading and wondered how
Erlang/OTP
handles it. To be precise: I want to use the Erlang-VM and adopt my own code
for
dynamically loading the code if for the first time a module is used. I was
browsing the code and reading the documentation, but I don't find it. Maybe
I am
blind, but I would appreciate any hints how the standard Erlang Runtime
System
handles that and where to find the more information (like documentation,
which
modules/code-files are involved, etc.).

--
Cheers and thank you in advance
Matthias Kretschmer
_______________________________________________
erlang-questions mailing list

http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list