Check patentability & draft patents in minutes with Patsnap Eureka AI!

A static inspection method for the use of qt program memory in the development of air traffic control training system

A training system and static inspection technology, applied in the field of air traffic control training system, can solve problems such as memory leakage, and achieve the effect of ensuring safety, improving reliability and practicability

Inactive Publication Date: 2017-05-17
WISESOFT CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to solve the problem of memory leaks that may be caused by the particularity of the Qt program in the development of the human-machine interface using Qt in the development of the air traffic control training system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A static inspection method for the use of qt program memory in the development of air traffic control training system
  • A static inspection method for the use of qt program memory in the development of air traffic control training system
  • A static inspection method for the use of qt program memory in the development of air traffic control training system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The invention is a new method specially researched for the static inspection of the program developed by man-machine interface using Qt in the development of the air traffic control training system, and solves the problem of memory leakage generated in the development of the Qt program.

[0034] The general idea of ​​technology implementation is to provide inspection capabilities for two kinds of Qt-specific memory leaks in Qt development:

[0035] This method provides inspection capabilities specifically for two types of Qt-specific memory leaks in Qt development:

[0036] If the Qt control object has no parent control, if the object is new in the heap, it must be coded to delete it, otherwise there will be a memory leak;

[0037] The Qt control object has a parent control. At this time, there is no need for the programmer to manually delete the Qt control, because the parent control will automatically destruct the controls in its own child control list when it is dest...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Qt program memory using static test method of an air traffic control training system. The method includes running a Qt program memory using static test program in the air traffic control training system, and adopting the directory, where codes to be detected located, as operation parameters during running; performing detection in five modules, namely traversing all .cpp and .h files of project directories and sub directories, and storing full paths into cpp_file in a string type; reading information of files line by line, analyzing new and delete statements, and acquiring establishment information of a Qt control object and delete information of all objects; storing the establishment information, acquired by analyzing, of the Qt control object into newOBJMap, and storing the delete information into deleteOBJMap; traversing each element of the newOBJMap, querying the corresponded elements of the deleteOBJMap, if the corresponded elements exist, combining the information and storing into QtObjectMap, and outputting the detection results into a log file or console. The problem of memory leakage caused by Qt specialty of the air traffic control training system is solved effectively, and the safety, reliability and practicality of the system are improved greatly.

Description

technical field [0001] The invention relates to an air traffic control training system, in particular to a static inspection of memory usage of an air traffic control system user interface program developed by using Qt. Background technique [0002] In addition to simulating the core program, the air traffic control training system also requires a large number of user interface programs to complete data preparation, simulate pilot operations, train controller seats, etc. When a large-scale air traffic control training system conducts long-term and complex training activities, it puts forward higher requirements for the stable operation of the human-machine interface, such as no memory leaks, no abnormal exits, etc. This method provides a static inspection mechanism for the source code of the man-machine interface process developed by using QT, which is convenient for developers to check errors and correct defects in time. [0003] Qt is a cross-platform C++ graphical user i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 胡术王煜清唐麒麟周卫平邹伟张晋武张丕旭周漩
Owner WISESOFT CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More