您好,欢迎光临本网站![请登录][注册会员]  
文件名称: QMemory与ShareQmm,Delphi中少见的第三方内存管理器
  所属分类: Delphi
  开发工具:
  文件大小: 60kb
  下载次数: 0
  上传时间: 2006-02-23
  提 供 者: che***
 详细说明: Delphi 中少见的第三方内存管理器,QStrings 的作者 Andrew Driazgov 发布 QMemory is a new memory manager. You can use it as a replacement of the default system memory manager. To do this simply add QMemory unit in your project (as the first unit listed in the project file). Don‘t forget to call the QMemDecommitOverstock function when your application is idle. This subroutine decommits the unused memory blocks (it‘s only way for program to return the memory to the operation system). All allocated memory blocks are 32 byte aligned. The minimum size of the block is 32 bytes. As it is necessary to store some information with each block a dword is attached to the front of each block at -4 the aligned address. Thus, memory request for up to 28 bytes allocates a 32-bytes block, request for 29 to 60 bytes allocates a 64-bytes block, etc (as power of 2). This idea was adopted from HPMM project of Robert Lee (rhlee@optimalcode.com). The memory is committed and decommitted in 64K blocks. The maximum amount of the memory is specified when QMemInstall function is called (from the initialization section of the unit). You can‘t change this value later. If some parts of your program implemented as DLLs you have to use ShareQmm instead of QMemory unit. ShareQmm must be the first unit in your library‘s USES clause AND your project‘s (select Project-View Source) USES clause if some parts of your program have done as separate DLLs (especially if they export any procedures or functions that pass strings as parameters or function results). ShareQmm is the interface unit to the QMM.DLL shared memory manager, which must be deployed along with your DLL. You can‘t combine using of the standard ShareMem and custom ShareQmm memory managers in the same program project (including EXE-file with all DLLs). You can use either ShareMem or ShareQmm, but not both together. ShareQmm memory manager works at the same speed as a ShareMem memory manager with the blocks up to 4096 bytes and much more faster with the larger blocks. ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 输入关键字,在本站1000多万海量源码库中尽情搜索: