-
why not shared registry between main and shared library??? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
This can be described as a C/C++ language specification and security limitation. Since a shared library may be linked and used by multiple applications, the OS reserves memory storage dedicated to the library when the library is loaded into memory. The library's memory storage cannot be accessed directly by different applications (this is a memory access violation). See also: |
Beta Was this translation helpful? Give feedback.
This can be described as a C/C++ language specification and security limitation.
Since a shared library may be linked and used by multiple applications, the OS reserves memory storage dedicated to the library when the library is loaded into memory.
The objects generated by the library code are placed in the memory storage reserved for the library (this allows objects generated by a single library to be shared by multiple applications).
The library's memory storage cannot be accessed directly by different applications (this is a memory access violation).
See also: