CN111142979B - Application program running method, device, computer equipment and storage medium - Google Patents

Application program running method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN111142979B
CN111142979B CN201911392915.0A CN201911392915A CN111142979B CN 111142979 B CN111142979 B CN 111142979B CN 201911392915 A CN201911392915 A CN 201911392915A CN 111142979 B CN111142979 B CN 111142979B
Authority
CN
China
Prior art keywords
application program
interface
application
running
running state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911392915.0A
Other languages
Chinese (zh)
Other versions
CN111142979A (en
Inventor
李东辉
胡桂侨
谢导
吕现广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911392915.0A priority Critical patent/CN111142979B/en
Publication of CN111142979A publication Critical patent/CN111142979A/en
Application granted granted Critical
Publication of CN111142979B publication Critical patent/CN111142979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides an application program running method, an application program running device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: in the starting process of the first application program, a second application program is started, and the second application program is used for calling a first application program interface to process images; the first application program determines the running state of the second application program, and the running state of the second application program is used for reflecting whether the computer equipment supports the first application program interface or not; and the first application program calls the first application program interface of the highest version supported by the computer equipment in the first application program interface and the second application program interface to process images based on the running state of the second application program, and the version of the second application program interface is lower than that of the first application program interface. The method and the device can ensure the image processing effect and ensure the normal operation of the application program.

Description

Application program running method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an application program running method, an apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, not all computer devices support calling a high-version application program interface (Application Programming Interface, API) for image processing due to different performances of the computer devices, for example, some computer devices only support an application program interface of microsoft DirectX9 (DX 9 for short). Some computer devices support both DirectX9 and DirectX11 (Direct eXtension11, DX11 for short) application program interfaces.
In the related art, an application program generally defaults to use a high-version application program interface, that is, directly calls the high-version application program interface after starting to realize image processing, so as to obtain higher graphic image rendering performance, so that an image effect presented by the application program is better, or defaults to use a low-version application program interface, so as to ensure the normal running of the application program.
However, an application program that defaults to using a high version of the application program interface may not function properly on a computer device that supports only a low version of the application program interface, affecting the user experience. While an application program that defaults to use a low version of the application program interface will not exhibit the best image processing results when running on a computer device that supports a high version of the application program interface.
Disclosure of Invention
The embodiment of the disclosure provides an application program running method, an application program running device, computer equipment and a storage medium, which can use an application program interface of the highest version supported by the computer equipment to perform image processing, so that the image processing effect can be ensured, and the normal running of an application program can be ensured. The technical scheme is as follows:
in one aspect, an embodiment of the present disclosure provides an application running method applied to a computer device, where the computer device has a first application and a second application, the method including:
the first application program starts the second application program in the starting process, and the second application program is used for calling a first application program interface to process images;
the first application program determines the running state of the second application program, and the running state of the second application program is used for reflecting whether the computer equipment supports the first application program interface or not;
and the first application program calls the application program interface of the highest version supported by the computer equipment in the first application program interface and the second application program interface to process images based on the running state of the second application program, and the version of the second application program interface is lower than that of the first application program interface.
Optionally, the first application program determines the running state of the second application program, including:
the first application program obtains running state indicating information sent by the second application program in an inter-process communication mode, wherein the running state indicating information is used for indicating the running state of the second application program.
Optionally, the first application program determines the running state of the second application program, including:
the first application program obtains indication information sent by the second application program in an inter-process communication mode;
the first application program responds to the received indication information to obtain a preset file, and the preset file is generated in the running process of the second application program;
and the first application program determines the running state of the second application program according to the preset file.
Optionally, the first application program determines the running state of the second application program, including:
the first application program obtains a preset file after a preset time length after the second application program is started, wherein the preset file is generated in the running process of the second application program;
and the first application program determines the running state of the second application program according to the preset file.
Optionally, the determining, by the first application program, the running state of the second application program according to the preset file includes:
if the first application program acquires the preset file, determining that the running state of the second application program is normal running;
or if the first application program does not acquire the preset file, determining that the running state of the second application program is abnormal running;
or the first application program determines the running state of the second application program according to the preset file, including:
if first information exists in the preset file, determining that the running state of the second application program is normal running, wherein the first information is written into the preset file under the condition that the second application program runs normally after the first application program interface is called; or alternatively, the process may be performed,
if the preset file is empty, determining that the running state of the second application program is abnormal running;
or the first application program determines the running state of the second application program according to the preset file, including:
if first information exists in the preset file, determining that the running state of the second application program is normal running, wherein the first information is written into the preset file under the condition that the second application program runs normally after the first application program interface is called; or alternatively, the process may be performed,
If second information exists in the preset file, determining that the running state of the second application program is abnormal running, wherein the second information is written into the preset file under the condition that the second application program cannot normally run after the first application program interface is called.
Optionally, the first application program invokes, based on the running state of the second application program, a first program interface of a highest version supported by the computer device in the first application program interface and the second application program interface to perform image processing, including:
when the running state of the second application program is normal running, calling the first application program interface to process the image of the first application program;
or when the running state of the second application program is abnormal running, calling the second application program interface to process the image of the first application program.
Optionally, the first application program interface is an interface of version more than DirectX11, and the second application program interface is an interface of version less than DirectX 9.
In another aspect, an embodiment of the present disclosure provides an application running apparatus applied to a computer device, where the computer device has a first application and a second application, the apparatus includes:
The starting module is used for starting the second application program in the starting process of the first application program, and the second application program is used for calling a first application program interface to process images;
a determining module, configured to determine an operating state of the second application, where the operating state of the second application is used to reflect whether the computer device supports the first application program interface;
and the processing module is used for calling the first application program interface and the application program interface of the highest version supported by the computer equipment in the second application program interface to process the image based on the running state of the second application program, wherein the version of the second application program interface is lower than that of the first application program interface.
In another aspect, embodiments of the present disclosure provide a computer device comprising: the system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so that any application program running method is executed.
In another aspect, embodiments of the present disclosure provide a computer-readable storage medium storing computer instructions for causing a computer to perform any one of the foregoing application program running methods.
The technical scheme provided by the embodiment of the disclosure has the beneficial effects that:
in the embodiment of the disclosure, the first application program starts the second application program in the starting process of the first application program, and determines the running state of the second application program after calling the first application program interface, wherein the running state can reflect whether the first application program interface is supported by the computer device, so that the highest version of the application program interface supported by the computer device can be selected from the first application program interface and the second application program interface according to the running state of the second application program to process the image of the first application program. In this case, if the computer device supports the first application program interface of the higher version, the first application program calls the first application program interface to perform image processing, so as to obtain a better image processing effect; and if the computer equipment does not support the first application program interface of the higher version, the first application program calls the second application program interface of the lower version to process the image, so that the normal operation of the first application program is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a flow diagram illustrating a method of application execution according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of application execution according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of application execution according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of application execution according to an exemplary embodiment;
FIG. 5 is a schematic diagram of an application running device, according to an example embodiment;
fig. 6 is a schematic diagram of a computer device, according to an example embodiment.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present disclosure, the following further details the embodiments of the present disclosure with reference to the accompanying drawings.
The embodiments of the present disclosure are applicable to a computer device in which an application program requiring image processing by calling an application program interface is installed. The application may be, for example, a host program, a game program, etc. The application program interface may be a DirectX, such as the application program interfaces of DirectX9 and DirectX 11.
Illustratively, the computer device includes, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Fig. 1 is a flow chart illustrating an application running method according to an exemplary embodiment, the method being applied to a computer device having a first application program and a second application program therein, an execution subject of the method being the first application program, for example, the aforementioned anchor program, as shown in fig. 1, the method including:
step S101: the first application program starts the second application program in the starting process.
In an embodiment of the disclosure, the second application is used for calling the first application program interface to perform image processing. In the embodiment of the disclosure, the second application program may be an application program that cannot be perceived by a user, and the second application program may call the first application program interface to perform image processing under the condition that the second application program is not perceived by the user, so as to improve user experience.
Step S102: the first application determines an operating state of the second application.
In the disclosed embodiment, the running state of the second application is used to reflect whether the computer device supports the first application program interface. Illustratively, there are two operating states of the second application: one is a normal running state, for example, the second application program can call the first application program interface to execute the instruction correctly under the premise of not crashing, and the other is an abnormal running state, for example, the second application program calls the first application program interface to execute the instruction under the premise of not crashing but the instruction is executed incorrectly, or the second application program calls the first application program interface to crash.
Step S103: the first application program calls the first application program interface and the application program interface of the highest version supported by the computer equipment in the second application program interface to process the image based on the running state of the second application program.
In the disclosed embodiment, the version of the second application program interface is lower than the version of the first application program interface.
Optionally, in the embodiment of the present disclosure, the first application program interface is an interface of more than DirectX11, that is, the first application program interface is an application program interface of DirectX11, or an application program interface of a subsequent version of DirectX11, and the second application program interface is an interface of a version below DirectX9, that is, the second application program interface is an application program interface of DirectX9, or an application program interface of a previous version of DirectX 9.
In the embodiment of the disclosure, the first application program starts the second application program in the starting process of the first application program, and determines the running state of the second application program after calling the first application program interface, wherein the running state can reflect whether the first application program interface is supported by the computer device, so that the highest version of the application program interface supported by the computer device can be selected from the first application program interface and the second application program interface according to the running state of the second application program to process the image of the first application program. In this case, if the computer device supports the first application program interface of the higher version, the first application program calls the first application program interface to perform image processing, so as to obtain a better image processing effect; and if the computer equipment does not support the first application program interface of the higher version, the first application program calls the second application program interface of the lower version to process the image, so that the normal operation of the first application program is ensured.
Fig. 2 is a flow chart illustrating a method of running an application program, the method being applied to a computer device having a first application program and a second application program therein, the method being performed by the first application program, for example, the aforementioned anchor program, as shown in fig. 2, and the method comprising:
step 201: and starting the first application program in response to the operation instruction received by the computer equipment.
The computer device user typically inputs an execution instruction of the first application program into the computer device through an input device such as a keyboard, a touch screen, or a mouse, and the first application program starts to start in response to the execution instruction.
Step 202: during the starting process of the first application program, the first application program starts the second application program.
For example, the first application may launch the second application upon instance initialization.
Alternatively, during the launch of the first application, the second application may be launched by any one of the following instructions: shellExecute, shellExecuteEx, winExec or CreateProcess, etc.
Step 203: the second application program calls the first application program interface to process the image.
Illustratively, the second application, after being launched, invokes the first application program interface for image processing. The second application may be a background program, so that the user does not perceive the second application and does not influence the user's use experience of the first application.
Step 204: the second application program sends running state indication information to the first application program in an inter-process communication mode.
In an embodiment of the present disclosure, the running state indication information is used to indicate a running state of the second application.
For example, if the second application program is operating normally (i.e. no crash and receives feedback information that the execution result is correct) after the first application program interface is called for image processing, the second application program sends first operating state indicating information to the first application program, where the first operating state indicating information is used to indicate that the second application program is operating normally.
If the second application program is abnormally operated after calling the first application program interface to process the image, namely the second application program crashes or receives feedback information representing error of an execution result, the second application program sends second operation state indicating information to the first application program, wherein the second operation state indicating information is used for indicating that the second application program is abnormally operated.
Illustratively, in order to achieve that the second application program can still send the running state indication information to the first application program through inter-process communication after crashing, the second application program needs to adopt a crash processing mechanism: the second application program calls a Microsoft 32-bit operating system (Windows 32) application program interface in the computer equipment to set a crash callback function when being started, the application program interface sets an exception capture function interface (SetUnHandledExceptionFilter), the operating system of the computer equipment calls a crash callback function set by the test program after the test program crashes, and the second application program is controlled by the crash callback function to send second running state indication information to the first application program in an inter-process communication mode.
Optionally, if the second application program receives feedback information indicating that the execution result is wrong (i.e. there is no crash), the second running state indication information may be directly sent to the first application program by means of inter-process communication.
Step 205: the first application program receives running state indication information sent by the second application program.
The first application program receives the running state indication information sent by the second application program, and the running state indication information can be the first running state indication information or the second running state indication information.
By means of the steps 204 and 205, the first application program can determine the running state of the second application program.
Step 206: and the first application program calls the application program interface of the highest version supported by the computer equipment in the first application program interface and the second application program interface to process the image based on the running state indication information.
Optionally, when the running state indication information is the first running state indication information, it is indicated that the highest version of the application program interface supported by the computer device is the first application program interface in the first application program interface and the second application program interface, the first application program calls the first application program interface to perform image processing, and when the running state indication information is the second running state indication information, it is indicated that the highest version of the application program interface supported by the computer device is the second application program interface in the first application program interface and the second application program interface, and the first application program calls the second application program interface to perform image processing.
Illustratively, in this embodiment, the first application program interface may be an interface of DirectX11, the second application program interface may be an interface of DirectX9, the first application program may be a host program, and the second application program may be a test program.
In the embodiment of the disclosure, the first application program starts the second application program in the starting process of the first application program, and determines the running state of the second application program after calling the first application program interface, wherein the running state can reflect whether the first application program interface is supported by the computer device, so that the highest version of the application program interface supported by the computer device can be selected from the first application program interface and the second application program interface according to the running state of the second application program to process the image of the first application program. In this case, if the computer device supports the first application program interface of the higher version, the first application program calls the first application program interface to perform image processing, so as to obtain a better image processing effect; and if the computer equipment does not support the first application program interface of the higher version, the first application program calls the second application program interface of the lower version to process the image, so that the normal operation of the first application program is ensured.
Fig. 3 is a flow chart illustrating an application running method according to an exemplary embodiment, the method is applied to a computer device, the computer device has a first application program and a second application program, an execution subject of the method is the first application program, for example, the aforementioned anchor program, and as shown in fig. 3, the method includes:
Step 301: and starting the first application program in response to the operation instruction received by the computer equipment.
The related content can be seen from the foregoing step 201, and a detailed description is omitted herein.
Step 302: during the starting process of the first application program, the first application program starts the second application program.
For the relevant content, reference may be made to the aforementioned step 202, and a detailed description is omitted here.
Step 303: the second application program calls the first application program interface to process the image.
Illustratively, the second application, after being launched, invokes the first application program interface for image processing. The second application may be a background program, so that the user does not perceive the second application and does not influence the user's use experience of the first application.
In a first possible implementation manner, the preset file is generated if the second application program is normally operated after calling the first application program interface. If the second application program can not normally run after calling the first application program interface, the preset file is not generated.
In a second possible implementation manner, if the second application program is normally operated after calling the first application program interface, the preset file is generated, and the first information is written in the preset file; if the second application program can not normally run after calling the first application program interface, information is not written in the preset file, namely the preset file is empty.
In a third possible implementation manner, if the second application program is normally operated after calling the first application program interface, the preset file is generated, and the first information is written in the preset file; if the second application program can not normally run after calling the first application program interface, writing second information in the preset file. If the second application program calls the first application program interface and crashes, the second information needs to be written into the preset file through the crash callback mechanism, and the related content can be referred to as step 204.
It should be noted that, the preset file refers to a specific address file that can be accessed and modified by both the first application program and the first application program, and the file may be stored in a public memory area of the computer device system. The preset file may be a text file (i.e., txt file), for example.
In addition, the embodiment of the present disclosure does not limit the specific content of the first information and the second information, as long as it is able to distinguish whether the second application program is operating normally.
Step 304: the second application program sends indication information to the first application program in an inter-process communication mode.
For the relevant content, reference may be made to the aforementioned step 204, and a detailed description is omitted here.
Step 305: the first application program receives the indication information sent by the second application program.
Step 306: and the first application program responds to the received indication information and acquires the preset file.
Step 307: the first application program determines the running state of the second application program according to the preset file.
In this first possible implementation manner, if the first application program obtains the preset file, determining that the running state of the second application program is normal running; or if the first application program does not acquire the preset file, determining that the running state of the second application program is abnormal running.
In this second possible implementation manner, if first information exists in the preset file, determining that the running state of the second application program is normal running, where the first information is written into the preset file when the second application program is normal running after the first application program interface is called; or if the preset file is empty, determining that the running state of the second application program is abnormal running.
In this third possible implementation manner, if first information exists in the preset file, determining that the running state of the second application program is normal running, where the first information is written into the preset file when the second application program is normal running after the first application program interface is called; or if the second information exists in the preset file, determining that the running state of the second application program is abnormal running, wherein the second information is written into the preset file under the condition that the second application program cannot normally run after the first application program interface is called.
Through steps 304 to 307, the first application program can determine the running state of the second application program.
Step 308: and the first application program calls the application program interface of the highest version supported by the computer equipment in the first application program interface and the second application program interface to process the image based on the running state of the second application program.
In the first possible implementation manner, when the first application program obtains the preset file, the second application program is indicated to be in normal operation, and in the first application program interface and the second application program interface, the application program interface of the highest version supported by the computer equipment is the first application program interface, and the first application program calls the first application program interface to process an image; when the first application program does not acquire the preset file, the second running program is abnormal, and in the first application program interface and the second application program interface, the application program interface of the highest version supported by the computer equipment is the second application program interface, and the first application program calls the second application program interface to process the image.
In the second possible implementation manner, when the first information exists in the preset file acquired by the first application program, the second application program is indicated to be in normal operation, and in the first application program interface and the second application program interface, the application program interface of the highest version supported by the computer equipment is the first application program interface, and the first application program calls the first application program interface to perform image processing; when the preset file acquired by the first application program is empty, the second running program is abnormal, and in the first application program interface and the second application program interface, the application program interface of the highest version supported by the computer equipment is the second application program interface, and the first application program calls the second application program interface to process images.
In the third possible implementation manner, when the first information exists in the preset file acquired by the first application program, the second application program is indicated to be in normal operation, and in the first application program interface and the second application program interface, the application program interface of the highest version supported by the computer device is the first application program interface, and the first application program calls the first application program interface to perform image processing; when second information exists in the preset file acquired by the first application program, the second running program is abnormal, and in the first application program interface and the second application program interface, the application program interface of the highest version supported by the computer equipment is the second application program interface, and the first application program calls the second application program interface to process images.
In the embodiment of the disclosure, the first application program starts the second application program in the starting process of the first application program, and determines the running state of the second application program after calling the first application program interface, wherein the running state can reflect whether the first application program interface is supported by the computer device, so that the highest version of the application program interface supported by the computer device can be selected from the first application program interface and the second application program interface according to the running state of the second application program to process the image of the first application program. In this case, if the computer device supports the first application program interface of the higher version, the first application program calls the first application program interface to perform image processing, so as to obtain a better image processing effect; and if the computer equipment does not support the first application program interface of the higher version, the first application program calls the second application program interface of the lower version to process the image, so that the normal operation of the first application program is ensured.
Fig. 4 is a flow chart illustrating an application running method according to an exemplary embodiment, the method is applied to a computer device, the computer device has a first application program and a second application program, an execution subject of the method is the first application program, for example, the aforementioned anchor program, and as shown in fig. 4, the method includes:
step 401: and starting the first application program in response to the operation instruction received by the computer equipment.
The related content can be seen from the foregoing step 201, and a detailed description is omitted herein.
Step 402: during the starting process of the first application program, the first application program starts the second application program.
For the relevant content, reference may be made to the aforementioned step 202, and a detailed description is omitted here.
Step 403: the second application program calls the first application program interface to process the image.
The relevant contents can be found in the foregoing step 303, and a detailed description thereof will be omitted herein.
Step 404: the first application program acquires a preset file after a preset time length after the second application program is started.
In the embodiment of the present disclosure, the preset duration is set by a timer (for example, the preset duration may be 3 seconds), and the first application program obtains the preset file after the timer expires.
The relevant content of the preset file may be referred to step 303, and will not be described herein.
Step 405: the first application program determines the running state of the second application program according to the preset file.
The relevant contents can be found in the foregoing step 307, and a detailed description is omitted herein.
Through steps 404 to 307, the first application program can determine the running state of the second application program.
Step 406: the first application program calls the application program interface of the highest version supported by the computer equipment in the first application program interface and the second application program interface to process the image based on the running state of the second application program.
The relevant contents may be referred to the aforementioned step 308, and a detailed description is omitted herein.
In the embodiment of the disclosure, the first application program starts the second application program in the starting process of the first application program, and determines the running state of the second application program after calling the first application program interface, wherein the running state can reflect whether the first application program interface is supported by the computer device, so that the highest version of the application program interface supported by the computer device can be selected from the first application program interface and the second application program interface according to the running state of the second application program to process the image of the first application program. In this case, if the computer device supports the first application program interface of the higher version, the first application program calls the first application program interface to perform image processing, so as to obtain a better image processing effect; and if the computer equipment does not support the first application program interface of the higher version, the first application program calls the second application program interface of the lower version to process the image, so that the normal operation of the first application program is ensured.
In the embodiment shown in fig. 4, the first application program and the second application program do not need to perform inter-process communication, so that the implementation is simpler.
Fig. 5 is a schematic structural view of an application running apparatus according to an exemplary embodiment, which is applied to a computer device having a first application and a second application therein, as shown in fig. 5, and includes:
the starting module 501 is configured to start a second application program in a process of starting the first application program, where the second application program is used to call the first application program interface to perform image processing;
a determining module 502, configured to determine an operating state of the second application, where the operating state of the second application is used to reflect whether the computer device supports the first application program interface;
and a processing module 503, configured to invoke, based on the running state of the second application program, the first application program interface and the highest version of the application program interfaces supported by the computer device in the second application program interface to perform image processing, where the version of the second application program interface is lower than that of the first application program interface.
In one implementation manner of the embodiment of the present disclosure, the determining module 502 is configured to obtain, by using an inter-process communication manner, running state indication information sent by a second application, where the running state indication information is used to indicate a running state of the second application.
In one implementation manner of the embodiment of the present disclosure, the determining module 502 is configured to obtain, by means of inter-process communication, indication information sent by the second application program; responding to the received indication information, acquiring a preset file, wherein the preset file is generated in the running process of the second application program; and determining the running state of the second application program according to the preset file.
In an implementation manner of the embodiment of the present disclosure, the determining module 502 is configured to obtain a preset file after a preset duration after the second application is started, where the preset file is generated in a running process of the second application; and determining the running state of the second application program according to the preset file.
The determining module 502 is configured to determine that the running state of the second application program is normal running if the first application program obtains the preset file;
Or if the first application program does not acquire the preset file, determining that the running state of the second application program is abnormal running;
or the first application program determines the running state of the second application program according to the preset file, including:
if first information exists in the preset file, determining that the running state of the second application program is normal running, wherein the first information is written into the preset file under the condition that the second application program runs normally after the first application program interface is called; or alternatively, the process may be performed,
if the preset file is empty, determining that the running state of the second application program is abnormal running;
or the first application program determines the running state of the second application program according to the preset file, including:
if first information exists in the preset file, determining that the running state of the second application program is normal running, wherein the first information is written into the preset file under the condition that the second application program runs normally after the first application program interface is called; or alternatively, the process may be performed,
if second information exists in the preset file, determining that the running state of the second application program is abnormal running, wherein the second information is written into the preset file under the condition that the second application program cannot normally run after the first application program interface is called.
In this embodiment of the present disclosure, the processing module 503 is configured to call the first application program interface to perform image processing of the first application program when the running state of the second application program is normal running;
or when the running state of the second application program is abnormal running, calling the second application program interface to process the image of the first application program.
Optionally, the first application program interface is an interface of version below DirectX9, and the second application program interface is an interface of version above DirectX 11.
Fig. 6 is a schematic diagram of a computer device, according to an example embodiment. As shown in fig. 6, the computer apparatus 600 includes a Central Processing Unit (CPU) 601, a system memory 604 including a Random Access Memory (RAM) 602 and a Read Only Memory (ROM) 603, and a system bus 605 connecting the system memory 604 and the central processing unit 601. The computer device 600 also includes a basic input/output system (I/O system) 606 for facilitating the transfer of information between various devices within the computer, and a mass storage device 607 for storing an operating system 613, application programs 614, and other program modules 615.
The basic input/output system 606 includes a display 608 for displaying information and an input device 609, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 608 and the input device 609 are connected to the central processing unit 601 through an input output controller 610 connected to the system bus 605. The basic input/output system 606 may also include an input/output controller 610 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input output controller 610 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 607 is connected to the central processing unit 601 through a mass storage controller (not shown) connected to the system bus 605. The mass storage device 607 and its associated computer-readable media provide non-volatile storage for the computer device 600. That is, the mass storage device 607 may include a computer readable medium (not shown) such as a hard disk or CD-ROM drive.
The computer readable medium may include computer storage media and communication media without loss of generality. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the one described above. The system memory 604 and mass storage device 607 described above may be collectively referred to as memory.
According to various embodiments of the invention, the computer device 600 may also operate by being connected to a remote computer on a network, such as the Internet. I.e., the computer device 600 may be connected to the network 612 through a network interface unit 611 coupled to the system bus 605, or alternatively, the network interface unit 611 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs stored in the memory, and the central processor 601 implements the application program operation method shown in any one of fig. 1 to 4 by executing the one or more programs.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory, that includes instructions executable by a processor of a computer device to perform the application execution method shown in various embodiments of the invention. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing is merely an alternative embodiment of the present disclosure, and is not intended to limit the present disclosure, any modification, equivalent replacement, improvement, etc. that comes within the spirit and principles of the present disclosure are included in the scope of the present disclosure.

Claims (9)

1. An application running method applied to a computer device having a first application and a second application therein, the method comprising:
the first application program starts the second application program in the starting process, and the second application program is used for calling a first application program interface to process images;
the first application program determines the running state of the second application program, and the running state of the second application program is used for reflecting whether the computer equipment supports the first application program interface or not;
When the running state of the second application program is normal running, calling the first application program interface to process the image of the first application program;
or when the running state of the second application program is abnormal running, calling a second application program interface to process the image of the first application program, wherein the version of the second application program interface is lower than that of the first application program interface.
2. The method of claim 1, wherein the first application determining the operating state of the second application comprises:
the first application program obtains running state indicating information sent by the second application program in an inter-process communication mode, wherein the running state indicating information is used for indicating the running state of the second application program.
3. The method of claim 1, wherein the first application determining the operating state of the second application comprises:
the first application program obtains indication information sent by the second application program in an inter-process communication mode;
the first application program responds to the received indication information to obtain a preset file, and the preset file is generated in the running process of the second application program;
And the first application program determines the running state of the second application program according to the preset file.
4. The method of claim 1, wherein the first application determining the operating state of the second application comprises:
the first application program obtains a preset file after a preset time length after the second application program is started, wherein the preset file is generated in the running process of the second application program;
and the first application program determines the running state of the second application program according to the preset file.
5. The method according to claim 3 or 4, wherein the first application program determining the running state of the second application program according to the preset file comprises:
if the first application program acquires the preset file, determining that the running state of the second application program is normal running;
if the first application program does not acquire the preset file, determining that the running state of the second application program is abnormal running;
or the first application program determines the running state of the second application program according to the preset file, including:
If first information exists in the preset file, determining that the running state of the second application program is normal running, wherein the first information is written into the preset file under the condition that the second application program runs normally after the first application program interface is called;
if the preset file is empty, determining that the running state of the second application program is abnormal running;
or the first application program determines the running state of the second application program according to the preset file, including:
if first information exists in the preset file, determining that the running state of the second application program is normal running, wherein the first information is written into the preset file under the condition that the second application program runs normally after the first application program interface is called;
if second information exists in the preset file, determining that the running state of the second application program is abnormal running, wherein the second information is written into the preset file under the condition that the second application program cannot normally run after the first application program interface is called.
6. The method of any of claims 1 to 4, wherein the first application program interface is a DirectX11 or higher version of the interface and the second application program interface is a DirectX9 or lower version of the interface.
7. An application running apparatus for use with a computer device having a first application and a second application therein, the apparatus comprising:
the starting module is used for starting the second application program in the starting process of the first application program, and the second application program is used for calling a first application program interface to process images;
a determining module, configured to determine an operating state of the second application, where the operating state of the second application is used to reflect whether the computer device supports the first application program interface;
the processing module is used for calling the first application program interface to process the image of the first application program when the running state of the second application program is normal running; or when the running state of the second application program is abnormal running, calling a second application program interface to process the image of the first application program, wherein the version of the second application program interface is lower than that of the first application program interface.
8. A computer device, comprising: a memory and a processor in communication with each other, the memory storing computer instructions, the processor executing the computer instructions to perform the application execution method of any one of claims 1-6.
9. A computer readable storage medium storing computer instructions for causing the computer to perform the application program running method according to any one of claims 1-6.
CN201911392915.0A 2019-12-30 2019-12-30 Application program running method, device, computer equipment and storage medium Active CN111142979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911392915.0A CN111142979B (en) 2019-12-30 2019-12-30 Application program running method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911392915.0A CN111142979B (en) 2019-12-30 2019-12-30 Application program running method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111142979A CN111142979A (en) 2020-05-12
CN111142979B true CN111142979B (en) 2023-09-22

Family

ID=70521734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911392915.0A Active CN111142979B (en) 2019-12-30 2019-12-30 Application program running method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111142979B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495579A (en) * 2002-07-31 2004-05-12 ������������ʽ���� Image forming device, information processing device and edition correcting method
CN104049984A (en) * 2013-03-12 2014-09-17 中国移动通信集团公司 Middleware of android terminal, terminal and application method thereof
WO2016009085A1 (en) * 2014-07-17 2016-01-21 Blackberry Limited Cross-domain data sharing with permission control
CN109144600A (en) * 2018-06-21 2019-01-04 连尚(新昌)网络科技有限公司 A kind of operation method of application program, equipment and computer-readable medium
CN110569130A (en) * 2019-07-29 2019-12-13 华为技术有限公司 Cross-process communication method, device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495579A (en) * 2002-07-31 2004-05-12 ������������ʽ���� Image forming device, information processing device and edition correcting method
CN104049984A (en) * 2013-03-12 2014-09-17 中国移动通信集团公司 Middleware of android terminal, terminal and application method thereof
WO2016009085A1 (en) * 2014-07-17 2016-01-21 Blackberry Limited Cross-domain data sharing with permission control
CN109144600A (en) * 2018-06-21 2019-01-04 连尚(新昌)网络科技有限公司 A kind of operation method of application program, equipment and computer-readable medium
CN110569130A (en) * 2019-07-29 2019-12-13 华为技术有限公司 Cross-process communication method, device and equipment

Also Published As

Publication number Publication date
CN111142979A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
JP4887150B2 (en) Method and apparatus for monitoring and resetting a coprocessor
CN106293880B (en) method and device for running Android application program on Windows system
KR101343176B1 (en) Rebootless display driver upgrades
CN109726135B (en) Multi-core debugging method and device and computer readable storage medium
CN102779050A (en) System and method for accelerated boot performance
US8335942B2 (en) Hang recovery in software applications
EP2169548A1 (en) Method and systems to display platform graphics during operating system initialization
US10802847B1 (en) System and method for reproducing and resolving application errors
JP2010238083A (en) Screen display device, screen display method and program
US8775785B2 (en) Program management method for performing start-up process for programs during start-up of device based on the previous start-up status to prevent occurrence of an out of memory condition
US10514972B2 (en) Embedding forensic and triage data in memory dumps
WO2017096910A1 (en) Method and system for adaptively adjusting display scale of office software
CN111142979B (en) Application program running method, device, computer equipment and storage medium
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
US20180373512A1 (en) Method and device for simulating synchronous blocking in asynchronous environment, storage medium, server and terminal
CN115344289A (en) Client upgrading method and device, terminal equipment and storage medium
WO2008048581A1 (en) A processing device operation initialization system
WO2023279875A1 (en) Bootloader startup procedure monitoring method and apparatus, embedded device, and storage medium
JPWO2009113273A1 (en) Program execution device and control method thereof
CN108280034A (en) A kind of Android system USB-HID apparatus self-adaptation method and devices
CN110727945B (en) Virus scanning method, device and computer readable medium
CN111414211A (en) Method, device, equipment and storage medium for displaying image in system starting phase
JP2012173956A (en) Host device to which usb device is connected and program of the same
JP2012194675A (en) Information apparatus and emergency access method for information apparatus
CN114356659A (en) Restarting method and apparatus, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant