共享内存
来源:互联网 发布:网络诗歌七十八首 编辑:程序博客网 时间:2024/05/01 10:26
This section describes how to share memory using the Memory Manager. On Win32, if a DLL exports routines that pass long strings or dynamic arrays as parameters or function results (whether directly or nested in records or objects), then the DLL and its client applications (or DLLs) must all share the same memory manager. The same is true if one application or DLL allocates memory with New or GetMem which is deallocated by a call to Dispose or FreeMem in another module. There are two mutually exclusive methods through which the Memory Manager can be shared between an application and its libraries: ShareMem and SimpleShareMem.
It is possible, but rarely needed, to control the memory manager sharing mechanism manually.
- List ShareMem as the first unit in the program and library uses clause. Your modules will become dependant on the external BORLNDMM.DLL library, allowing them to share dynamically allocated memory.
- Deploy BORLNDMM.DLL with your application or DLL that uses ShareMem. When an application or DLL uses ShareMem, its memory manager is replaced by the memory manager in BORLNDMM.DLL.
- List SimpleShareMem as the first unit in the program and library uses clause in each of your modules. The module that is initialized first will be the module that will share its memory manager. All modules initialized after that will use the memory manager of the first module.
- The module that is initialized first will be the module that will share its memory manager. All modules initialized after that will use the memory manager of the first module.
- 【共享内存】共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- 共享内存
- suse ramdisk的使用
- Craigslist 的数据库架构
- 天下杂谈:Windows的名称咋就那么不人性化的呢
- 注册内存漏洞
- 监控内存使用
- 共享内存
- linux-socket详解与实例
- struts&hibernate应用(对数据库增删改查)实例
- c语言指针的用法
- vector容器类小结
- .net绝版面试题
- oracle的参数文件,服务器参数文件pfile,spfile
- 壁纸
- spring结合hibernate cache配置