摘要
在软件开发中,用户界面程序提高了软件系统易操作性、用户体验度等非功能性需求。长时间、复杂流程的大型软件系统对人机界面的稳定性则提出了较高要求,不能出现内存泄漏、不能中途异常退出。针对使用图形用户界面应用程序框架Qt开发的用户界面程序的内存泄漏问题,提出了一种基于Qt的人机界面程序的源码静态内存检测方法。该方法针对Qt控件对象是否存在父控件的两种内存泄漏情况,识别所需检查的目标对象是否为Qt控件类对象,是否存在内存泄漏。该方法提供的Qt控件对象内存检测能力可准确识别目标对象是否存在内存泄漏、手工删除错误等问题,便于开发人员及时检查错误,修正缺陷,减少程序运行中的内存泄漏问题,以满足大型系统的软件质量需求。
In software development, the user interface program improves the non-functional requirements of software system, such as easy operation,user experience and so on. The large-scale training system of long-term and complex process gives the higher requirements to the stability of human-computer interface,no memory leak,no halfway abnormal exit. Aiming at the memory leakage of the user interface program developed by graphical user interface application framework Qt,a source static memory detection method of Qt-based human- computer interface program is presented. There are two types of memory leaks for the Qt control object for the parent control. The method identifies whether the target object to be checked is a Qt control class object, and whether there is a memory leak. The memory detection of Qt control object provided by this method can accurately identify whether the target object has a memory leak and manually remove the faults, which makes it easy for the developers to check the errors and correct the defects in time, and to reduce the program running in the memory leakage, meeting the functional requirements of large-scale aviation training system.
出处
《计算机技术与发展》
2017年第12期119-123,127,共6页
Computer Technology and Development
基金
中国民航创新基金项目(MHRD20150228)
关键词
QT
内存泄漏
遍历匹配
泄漏检测
Qt
memory leakage
traversal matching
leak detection