Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

38results about How to "Avoid memory leaks" patented technology

Memory management method of embedded system

The invention relates to a memory management method of an embedded system, which comprises the steps of: (1), opening up a physical memory, managing the physical memory by using a turnover thread heap management system, and allocating a memory space for data requirement from the tail end and the head end of a thread heap free memory by the thread heap management system, wherein the thread heap free memory has a normal state N and a turnover state F; (2), dividing all data requirements into a temporary space requirement and an output space requirement, and allocating one end of the thread heap free memory to be a temporary end or an output end by a type thread heap management system according to the data requirements; (3), allocating a head end memory to data required in a temporary space by the thread heap management system; and (4), when a superior function calls a subordinate function, controlling the thread heap free memory to turn over by the thread heap management system, when exiting the subordinate function, releasing a temporary space at the current temporary end, preserving the output space of the output end and merging with the temporary space of the temporary end of the superior function. The invention can realize timely release of the memory, has high operating efficiency, does not generate memory fragments, and can operate stably and efficiently for a long time.
Owner:TSINGHUA UNIV

Resource management method and device of application program integrated with game module, electronic equipment and storage medium

ActiveCN113082721AEasy to recycleAvoid display problemsVideo gamesGame engineResource management
The invention discloses a resource management method and device for an application program of an integrated game module, and the method comprises the steps: responding to an access button in a first page of the application program clicked by a user, and loading a second page of the application program, the second page being a game page realized based on a rewritten Cocos2d game engine; in response to loading of the second page, executing rendering of a game picture in the second page; in response to an exit button in the second page clicked by the user, setting a flag bit for stopping rendering of the game; based on the judgment of the flag bit in a plurality of key code segments of the rewritten Cocos2d game engine, terminating the execution of the plurality of key code segments; and after the execution of the plurality of key code segments is terminated, recovering the memory related to the second page in the process of the application program. The invention further discloses electronic equipment and a storage medium.
Owner:TENCENT MUSIC ENTERTAINMENT TECH SHENZHEN CO LTD

Control method of database cursors, and database system

The invention discloses a control method of database cursors, and a database system. The control method of the database cursor comprises the steps that when database activation cursors are detected, the activated cursors and corresponding cursor grades will be recorded, so that a sequence list of all the activated cursors can be obtained; and when the detection result indicates that the activated and idle low-grade cursors exist in the sequence list, memory resources occupied by the low-grade cursors will be released. According to the invention, the cursors can be closed according to the cursor grades and the resources can be released when memory resources are insufficient, so that memory leak caused by the database cursors can be solved effectively.
Owner:SHENZHEN TCL NEW-TECH CO LTD

Distributing method and device of bullet-screen message, terminal and storage medium

The embodiment of the invention discloses a distributing method and device of a bullet-screen message, a terminal and a storage medium. The method includes: if a starting indication is received againafter a first live streaming room is destroyed, calling a lifecycle creation function of the first live streaming room, and sending first identification information and a corresponding current first reference relationship to a bullet-screen distributing object; replacing a historical reference relationship, which is of the first live streaming room and is already stored in a preset key value paircollection object, with the current first reference relationship by the bullet-screen distributing object according to the first identification information, wherein the current first reference relationship is inherited from a preset listener interface protocol, and the preset listener interface protocol includes a receiving method of the bullet-screen message; and distributing the bullet-screen message to the first live streaming room by the bullet-screen distributing object on the basis of the current first reference relationship through calling the receiving method of the bullet-screen message. Through adopting the above technical solution, the problem of memory leakage is solved on the basis of distributing the bullet-screen message to the currently running live streaming room.
Owner:WUHAN DOUYU NETWORK TECH CO LTD

Object release method and device, equipment, and storage medium

The embodiment of the invention discloses an object release method and device, equipment and a storage medium. The method comprises the following steps: taking a component identifier of the componentand a class object of a class type in the component as function input parameters, calling a data navigation function in the data management object, determining an instance object corresponding to theclass object, and storing the instance object and an object identifier of the instance object to a target position corresponding to the component identifier in the data cache object; and when a component destruction operation of the component is detected, taking the component identifier as a function input parameter, calling a data release function in the data management object, and releasing thecomponent identifier stored in the data cache object, the instance object corresponding to the component identifier and the object identifier of the instance object. Through the technical scheme of the embodiment of the invention, the instance object can be released in time, the problem of memory leakage is effectively avoided, and the normal operation of the application program is ensured.
Owner:武汉斗鱼鱼乐网络科技有限公司

Data processing method and device, storage medium and electronic equipment

The invention discloses a data processing method and device, a storage medium and electronic equipment. The data processing method can comprise the steps: monitoring a life cycle event of a second object through a first object, wherein the first object refers to the second object, and the life cycle of the first object is longer than that of the second object; detecting whether a life cycle end event of the second object is monitored or not; and if the life cycle end event of the second object is monitored, cancelling the reference of the first object to the second object. According to the data processing method, memory leakage caused by the fact that the long-life-cycle object still holds the reference of the short-life-cycle object after the life cycle of the short-life-cycle object is finished can be effectively avoided.
Owner:TENCENT MUSIC ENTERTAINMENT TECH SHENZHEN CO LTD

Sound effect control method and device

PendingCN112791407AHighly configurableImproved development process efficiencyDigital data information retrievalVideo gamesHTML5Acoustics
The embodiment of the invention provides a sound effect control method and device. The method comprises the steps that: sound configuration data is obtained; a sound manager is created, and a plurality of sound object type instances are created through the sound manager according to the sound effect configuration data, wherein the sound object type instances have sound control attributes, and the sound object type instances are used for controlling sound effects according to the sound control attributes; and the plurality of sound object type instances are stored in the sound manager, so that the sound manager manages the plurality of sound object type instances. Through the sound manager and the sound object types, the configurability of a sound effect system in an HTML5 game is greatly improved; a game planning and sound effect group can simply modify table data to correct the data and adjust expressions, and does not need to repeatedly modify and output sound resources, so that the efficiency of a development process is improved.
Owner:NETEASE (HANGZHOU) NETWORK CO LTD

A method, device, terminal and storage medium for distributing barrage messages

The embodiment of the invention discloses a barrage message distribution method, device, terminal and storage medium. The method includes: after the first live broadcast room is destroyed, if the activation instruction is received again, calling the life cycle creation function of the first live broadcast room, and sending the first identification information and the corresponding current first reference to the barrage distribution object relationship; the barrage distribution object replaces the historical reference relationship of the first live broadcast room stored in the preset key-value pair set object with the current first reference relationship according to the first identification information; wherein, the current first reference relationship inherits from the preset Set up the listener interface protocol, and the preset listener interface protocol includes the receiving method of the bullet chat message; the bullet chat distribution object distributes the bullet chat message to the first live broadcast by calling the receiving method of the bullet chat message based on the current first reference relationship between. By adopting the above technical solution, the problem of memory leak is solved on the basis of distributing the barrage messages to the running live broadcast room.
Owner:WUHAN DOUYU NETWORK TECH CO LTD

Method for realizing fly wire effect based on web front-end technology

The invention provides a method for realizing a fly wire effect based on a web front-end technology. The method comprises the steps of setting a data filtering condition a1; according to the filteringconditions a1, receiving the request data, establishing a data processing queue A, sending the obtained request data to the data processing queue A, drawing a flying wire from the advanced data of the request data in the data processing queue A, positioning a source address and a destination address on a map according to the addresses contained in the advanced data, drawing the flying wire between the source address and the destination address on the map, and counting 1; storing the drawn data, the fly wires and the counts as the fly wire data in a reserved fly wire library. According to themethod, by acquiring the data in the recent preset time in real time, drawing the data in a queue form, and displaying the data on the map, the source address and the destination address of the real-time data meeting the conditions is emphatically displayed, and the method has the advantages of high efficiency, good performance, good interaction effect, prevention of memory leakage and improvementof data processing efficiency.
Owner:HANGZHOU ANHENG INFORMATION TECH CO LTD

Method and device for preventing memory leakage, and computer readable storage medium

The invention discloses a method for preventing memory leakage, which comprises the following steps of customizing a static executable object, and realizing a Runnable interface by the static executable object; transmitting at least one first Runnable object to be executed into the static executable object by using a proxy mode to perform weak reference packaging to obtain a packaged second Runnable object; customizing a strong reference queue, and after the first Runnable object is packaged, inserting the first Runnable object into the strong reference queue; submitting the packaged second Runnable object to a thread pool to wait for execution; and when a target thread in the thread pool starts to be executed, deleting a first Runnable object corresponding to a second Runnable object executed by the target thread in the strong reference queue. The invention further provides a device for preventing memory leakage and a computer readable storage medium. According to the memory leakage prevention method provided by the invention, the reference of the Runnable object to the external class can be decoupled, and the memory leakage of the external class is avoided.
Owner:CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
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