Mechanism for a computer program to load a library (or other binary) into memory at runtime. Allows retrieving addresses of functions and variables contained in the library, executing functions, accessing variables, and unloading library from memory.
Questions tagged [dynamic-loading]
378 questions
5
votes
3 answers
How can I get a portion of my C# app to load dynamically without app restart?
My C# application server.exe is critical to my business operations and ideally needs to run without interruption 24/7. The code is rock solid but one thing that's out of my control is the poor quality of inbound data feeds that are generated by…

Chad Decker
- 5,997
- 8
- 27
- 31
5
votes
0 answers
dlsym() returns 'symbol not found'
I'm using OS X 10.7 (Lion), XCode 4.6.3 and libstdc++ as the C++ Standard Library.
I have this code in my main project:
shared.cpp:
extern "C" int sharedFun()
{
return 5;
}
And this in my side project, that needs to dynamically load the main…

Tsury
- 729
- 1
- 9
- 24
5
votes
1 answer
java agent with jvmti load at runtime, unload from within
I'm writing a Java agent to interact with JVMTI. For reasons I won't get into, I need to use JVMTI (the C interface inside the java process) rather than the Java APIs like java.lang.instrument or JDI. I would like to be able to do a couple of things…

Dan
- 7,155
- 2
- 29
- 54
5
votes
2 answers
Reloading a library using dynamic loading in C++
If I open a library using dynamic loading in C++, can I later reload an updated version of that same library? I would test this myself, but I am curious about it's feasibility before I start looking into this as a potential solution to something I…

user396404
- 2,759
- 7
- 31
- 42
4
votes
3 answers
Could not load library /usr/local/lib/postgresql/plpgsql.so .. undefined symbol "MakeExpandedObjectReadOnly"
What I'm trying to do is to convert this installing script for webodm (https://gist.github.com/lkpanganiban/5226cc8dd59cb39cdc1946259c3fea6e) written in bash to be used in tcsh shell under a freenas jail.
I have now enter at part where I can't find…

pernils
- 63
- 2
- 6
4
votes
5 answers
Dynamically loadable and unloadable application modules in Java - how?
I'm writing a server application which makes use of external modules. I would like to make them to be upgradeable without requiring server restart. How do I do that? I've found OSGi but it looks very complicated and big for my task.
Simple *.jar…

Vladislav Rastrusny
- 29,378
- 23
- 95
- 156
4
votes
1 answer
Webpack: output.path, publicPath and chunkFilename selecting concept for projects where html and js files are not in the same folder
From the webpack documentation for output.publicPath:
Simple rule: The URL of your output.path from the view of the HTML
page.
module.exports = {
output: {
path: path.resolve(__dirname, 'public/assets'),
publicPath:…

Takeshi Tokugawa YD
- 670
- 5
- 40
- 124
4
votes
3 answers
C++ dynamic loading of classes: Why is a "destroy" function needed?
This page examines and gives a very clear example of how to dynamically load and use a class, there is something that I have a hard time understanding though:
I understand why is the "create" function needed, but why is a "destroy" function needed?…

Mystic Odin
- 269
- 1
- 2
- 13
4
votes
2 answers
Proper definition of java dynamic class loading
In my understanding all java classes are loaded dynamically into memory,
that is when JVM sees for the first time a CLASS symbol, it loads its content into memory.
In java we are used to say we are making the JVM load a class dynamically
when…

GionJh
- 2,742
- 2
- 29
- 68
4
votes
5 answers
Dependency Hell: linux .so plugin dynamic loading
I've created a shared library built with a standalone build tree using linuxbrew, which fails to load in the parent application due to dependency conflict. I'm using a separate application which dynamically loads the library after startup with the…

Andrew Hundt
- 2,551
- 2
- 32
- 64
4
votes
1 answer
Dynamically loaded library remains loaded despite dlclose
Today I'm looking for some enlightenment of the deep magic inside the dynamic loader. I'm debugging/troubleshooting a plugin system for a C++ application running on Linux. It loads plugins via dlopen (RTLD_NOW | RTLS_LOCAL) and releases them using…

djf
- 6,592
- 6
- 44
- 62
4
votes
4 answers
Loading a SWF dynamically causes previously loaded SWFs to misbehave
I have run into a very strange problem with Flash and Flex. It appears that under certain circumstances, movie clips from a SWF loaded at runtime (using Loader) cannot be instantiated if another SWF has been loaded in the mean time. Here is the…

Aaron
- 2,013
- 16
- 22
4
votes
6 answers
Dynamically loading classes (with custom behavior) from different assemblies?
We are building an app for few customers, each has its own requirements along with the similar ones. We also want to keep all the code in the same app, not branch it, and the IFs is not good choice since it will be all over places.
I plan having the…

mycoffee
- 41
- 1
- 1
- 4
4
votes
2 answers
Load content as an element scrolls into view
I have a list of search results in a
element with a static height and overflow: auto; in the style. I would like to load only the first x number of search results (e.g. 20), and load another x results as the user scrolls to the bottom of the…

Aistina
- 12,435
- 13
- 69
- 89
4
votes
3 answers
Android dynamic loading list view onScrollListener issues
I have implemented a list view, every user scroll to bottom screen, it auto add new data to list view
Once the scroll has completed, onScroll() call for every new item that enters the displaying view, from the beginning to the end of the…

chinh
- 273
- 1
- 4
- 15