MemCheck Frequently Asked Questions
***********************************************************************************************
Q: Why does not MemCheck report a leak when a block allocated with GetMem is not freed ?
A: MemCheck uses the array "BlocksToShow" to decide wether it should show a leak or not. In this case, it is likely that BlocksToShow[MUser] is False. Setting it to true should cure the problem.
***********************************************************************************************
Q: Why does not MemCheck tell me anything at the end of execution ?
A: MemCheck raises exceptions to show you erroneous code. You will not see anything if "break on exceptions" is turned off.
***********************************************************************************************
Q: Is there a problem using MemCheck with QuickReport ?
A: Yes. Calling the method "Preview" fails MemCheck. As we do not have access to the sources of the component, we can not determine the problem. However, a bad use of memory in QuickReport is likely to cause this problem. For example, imagine that somebody allocates some memory with GetMem (when MemCheck is active) and frees this memory with SysFreeMem (unit System). This makes all the system inconsistent (and is generally not very good programming, if I may allow myself), while this would be OK without MemCheck. But once more, we can not prove that Quick report is erroneous. A way around this problem is to temporarily turn off MemCheck when you call QuickRep.Preview, and turn it on again just after (Ok, this is not very nice, but should work).
Last update: 19.03.98
Contact...
Jean Marc Eber is at: Jean-Marc.Eber@socgen.com
Vincent Mahon is at: Vincent.Mahon@socgen.com
sost.rar_memory_进程与线程
版权申诉
134 浏览量
2022-09-24
23:38:58
上传
评论
收藏 19KB RAR 举报
小波思基
- 粉丝: 72
- 资源: 1万+
最新资源
- tiamo软件教程.doc
- nvm管理Nodejs多版本工具
- Unit1Howcanwebecomegoodlearners知识点整理(良心出品必属精品).doc
- 基于JSP在线维他茶饮销售网站平台源码.zip
- web学习笔记.doc
- 基于pytorch+Unet进行MRI肝脏图像分割源码+数据集+模型.zip
- 在Android Studio中开发一个Android App项目步骤
- 基于yolov8实现进行物体跟踪源码.zip
- Java多线程学习Java多线程学习Java多线程学习Java多线程学习.txt
- 算法数据结构-动态规划算法(Dynamic Programming)超详细总结加应用案例讲解.txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈