Method for preventing memory leak
A memory leak and release memory technology, applied in the software field, can solve problems such as unresolvable memory and leaks, and achieve the effect of reducing memory leaks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0024] Such as figure 1 As shown, a method for preventing memory leaks includes the following steps:
[0025] (1) Create an access proxy object 11: create a corresponding access proxy object while creating the actual object;
[0026] (2) Establishing access relationship 12: accessing the actual object through the corresponding access proxy object;
[0027] (3) release access proxy object pointer 13: release the pointer of the access proxy object to the actual object;
[0028] (4) Release the object 14: destroy the actual object to release the memory space.
[0029] In this embodiment, the information stored in the access proxy object is the address of the actual object in the memory, and the user accesses the access proxy object through a pointer, allowing multiple users to point to the access proxy object at the same time, and the access pr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 