Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for detecting resource leakage

A resource leakage and resource technology, applied in the field of resource leakage detection, can solve the problems of GDI resource leakage, low detection efficiency, cumbersome manual code inspection logic operation, etc., and achieve the effect of improving detection efficiency

Active Publication Date: 2021-08-24
深圳市雅阅科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the GDI resources used are not actively released, GDI resource leaks will occur, and the number of GDI resources occupied by the application continues to increase, and the application cannot apply for new GDI resources, resulting in problems such as disorderly drawing of the drawing interface or slow system response
Maintenance personnel usually check whether there is a code logic error in the application program to detect whether there is a GDI resource leak. The method of manually checking the code logic is cumbersome and the detection efficiency is low.

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 method and device for detecting resource leakage
  • A method and device for detecting resource leakage
  • A method and device for detecting resource leakage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0021] The embodiment of the present invention provides a method for detecting resource leakage, which obtains the quantity of GDI resources occupied by a running process, and judges whether the quantity of GDI resources occupied by the process is greater than the preset quantity threshold corresponding to the process. When the number of occupied GDI resources is greater than the preset number threshold, it is determined that a GDI resource leak is det...

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 embodiment of the present invention discloses a method and device for detecting resource leakage. The method includes: acquiring the quantity of GDI resources occupied by a running process; judging whether the quantity of GDI resources occupied by the process is greater than the predetermined A quantity threshold is set; when the quantity of GDI resources occupied by the process is greater than the preset quantity threshold, it is determined that a GDI resource leak is detected. By adopting the embodiment of the present invention, GDI resource leakage can be effectively detected, and the detection efficiency of GDI resource leakage can be improved.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a method and device for detecting resource leakage. Background technique [0002] GDI (Graphics Device Interface, Graphics Device Interface), is responsible for information exchange between operating systems (such as Windows, Linux, etc.) and applications. Operations such as outputting graphics or text on a display screen, a printer, or other output devices can be performed through an application program. GDI resources such as brushes or fonts are held by the operating system. Applications need to apply for GDI resources from the operating system, and the acquired GDI resources must be released after use. When the used GDI resources are not actively released, GDI resource leakage will occur, and the number of GDI resources occupied by the application continues to increase, and the application cannot apply for new GDI resources, resulting in disordered drawing inter...

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): G06F9/46
Inventor 陈威
Owner 深圳市雅阅科技有限公司