Method and device for detecting memory

A memory detection and memory technology, applied in the field of memory, can solve problems such as difficulty in detecting memory overflows and exceptions in a timely manner, and achieve the effect of convenient program debugging and reduction of hidden dangers.

Active Publication Date: 2009-12-09
SHENZHEN IPANEL TECH LTD
View PDF0 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiment of the present invention is to provide a memory detection method, aiming to solve the pr

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
  • Method and device for detecting memory
  • Method and device for detecting memory

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0014] In order to make the objectives, technical solutions and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0015] In the embodiment of the present invention, the corresponding state value is set for the memory according to the use state of the memory. When the memory or data in the memory is used, the state value of the memory is detected to determine whether the memory has a memory error, such as a memory overflow or abnormality. Or wild pointer phenomenon.

[0016] figure 1 The implementation process of the memory detection method provided by the embodiment of the present invention is shown, and the details are as follows:

[0017] In step S101, corresponding state values ​​are set for the memo...

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 is applicable to the field of memories and provides a method and a device for detecting a memory. The method comprises the following step: A, setting corresponding state values for memories in different states; and B, detecting the service condition of the memory and judging whether the memory has memory errors according to the state values of the memory. The method can detect errors such as memory overflow, memory abnormal and wild pointer in the memory in a running process of a computer program timely, quickly and effectively, reduce the hidden dangers of the computer program and facilitate program debugging through the steps of setting the corresponding state values for the memories in different states and detecting the service condition of the memory and judging whether the memory has memory overflow, memory abnormal or wild pointer according to the state values of the memory.

Description

technical field [0001] The invention belongs to the field of memory, and in particular relates to a memory detection method and device. Background technique [0002] Memory management is extremely important in computer system design. Efficient memory allocation, release and organization have become more and more important in applications. Memory overflow, memory exceptions, or wild pointers often occur during memory use, causing computer programs to Anomalies or errors will cause the computer to crash in serious cases, so the detection of memory is very important for computer systems and computer programs. Among them, memory overflow means that after the computer program allocates the memory area to store data according to the specified size, the data written into the memory exceeds the pre-allocated memory area, resulting in the rewriting of data in other memory areas. Memory exception means that after the computer program allocates the memory area according to the specifi...

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
IPC IPC(8): G06F11/36
Inventor 徐佳宏王美聪程伯钦聂伟
Owner SHENZHEN IPANEL TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products