Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Application crash protection method and apparatus, device and storage medium

A technology of application programs and equipment, applied in the field of Internet applications, can solve problems such as code increase and application program crashes, and achieve the effect of maintaining simplicity, improving robustness, and avoiding crashes

Inactive Publication Date: 2018-05-18
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, this method needs to add additional code to verify whether the object can identify the corresponding method, resulting in an increase in the amount of code. At the same time, if the developer forgets to verify, it will cause the application to crash.

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
  • Application crash protection method and apparatus, device and storage medium
  • Application crash protection method and apparatus, device and storage medium
  • Application crash protection method and apparatus, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 It is a flow chart of an application program crash protection method provided by Embodiment 1 of the present invention. This embodiment is applicable to a mobile terminal with an IOS operating system. During the use of the application program, the application program crashes due to calling an unidentified method of the object Case. The method can be executed by the application program crash protection device / device / computer-readable storage medium provided by the embodiment of the present invention, and the device / device / computer-readable storage medium can be implemented by software and / or hardware. see figure 1 , the method specifically includes:

[0028] S110. During the use of the application program, if the current object cannot recognize the current method, create a crash protection processing object, and dynamically add the current method to the created crash protection processing object.

[0029] Among them, an object refers to an entity with charact...

Embodiment 2

[0041] figure 2 It is a flow chart of an application crash protection method provided by Embodiment 2 of the present invention. The method is based on Embodiment 1 of the present invention, and further provides a method of creating a crash protection processing object if the current object cannot recognize the current method. Methods. Specifically, see figure 2 , the method includes:

[0042] S210, if the current object cannot recognize the current method, send an unrecognized message.

[0043]An unidentified message refers to a message sent after the system detects that an object calls a method that does not belong to it. The message may include information such as the current object name and the current method name.

[0044] If the system detects that the current object does not recognize the current method, the system issues an unrecognized message.

[0045] S220, after the unidentified message is captured by the custom message forwarding method, determine whether the...

Embodiment 3

[0058] image 3 It is a flowchart of an application program crash protection method provided by Embodiment 3 of the present invention, and the method is a preferred embodiment of the above-mentioned embodiments of the present invention. Specifically, see image 3 , the method includes:

[0059] S301. When starting the application program, replace the message forwarding method in the system base class with a self-defined message forwarding method, and send a request for obtaining the whitelist list to the server.

[0060] S302. Determine whether the application successfully obtains the whitelist. If the white list is obtained successfully, execute step S303; if not, execute step S304.

[0061] S303. Store the whitelist in a preset database, and execute step S304.

[0062] S304, the current object invokes the current method.

[0063] S305, judging whether the current object can recognize the current method. If it cannot be identified, execute step S306; if it can be identi...

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

Embodiments of the invention disclose an application crash protection method and apparatus, a device and a storage medium. The method comprises the steps of in a using process of an application, if acurrent object cannot identify the current method, creating a crash protection processing object, and dynamically adding the current method for the created crash protection processing object; and controlling the crash protection processing object to execute the added method. According to the technical scheme provided by the method and the apparatus, when the current object cannot identify the current method, the crash protection object executes the method by dynamically adding the current method to the crash protection object, so that the phenomenon of application crash caused by the fact thatthe current object cannot identify the current method can be avoided, the product robustness and stability and the user experience are improved, and the code conciseness is kept.

Description

technical field [0001] The present invention relates to the technical field of Internet applications, in particular to a method, device, device and storage medium for preventing application crashes. Background technique [0002] In recent years, with the popularization of mobile terminals and application programs (Application, App), the iPhone series mobile phones and iPad series tablet computers launched by Apple all use the IOS operating system, and mobile terminals with the IOS operating system are executing application programs. Occasionally, the application crashes due to calling an unrecognized method on the object. This kind of crash usually occurs during the process of calling a certain method of a specific object. If the object cannot recognize the method, then this scenario will cause the application to crash, thereby interrupting the application's service to the user and affecting the user's experience. [0003] The current approach is to check whether the object...

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/07
CPCG06F11/0751G06F11/0793
Inventor 黄铭
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products