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

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

Info

Publication number
CN111142979A
CN111142979A CN201911392915.0A CN201911392915A CN111142979A CN 111142979 A CN111142979 A CN 111142979A CN 201911392915 A CN201911392915 A CN 201911392915A CN 111142979 A CN111142979 A CN 111142979A
Authority
CN
China
Prior art keywords
application program
interface
application
running state
running
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.)
Granted
Application number
CN201911392915.0A
Other languages
Chinese (zh)
Other versions
CN111142979B (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

Images

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 and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: the method comprises the steps that a first application program starts a second application program in the starting process, and the second application program is used for calling a first application program interface to perform image processing; 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 with the highest version supported by the computer equipment in the first application program interface and the second application program interface to perform image processing 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. The method and the device can ensure the image processing effect and normal operation of the application program.

Description

Application program running method and 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 and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, due to different performances of computer devices, not all computer devices support calling a high-version Application Programming Interface (API) to perform image processing, for example, some computer devices only support the Application program Interface of microsoft's DirectX9(Direct tension9, DX 9). Some computer devices support both DirectX9 and DirectX11(Direct eXtension11, DX11) application program interfaces.
In the related art, the application program generally uses the high-version application program interface by default, that is, the high-version application program interface is directly called after the application program is started to realize image processing so as to obtain higher graphic image rendering performance and enable the image effect presented by the application program to be better, or the low-version application program interface is used by default so as to ensure the normal operation of the application program.
However, by default, an application using a high-version application program interface may not operate properly on a computer device that supports only a low-version application program interface, which may affect user experience. By default, an application program using a low-version application program interface cannot present the best image processing effect when running on a computer device supporting a high-version application program interface.
Disclosure of Invention
The embodiment of the disclosure provides an application program running method and device, a computer device and a storage medium, which can use an application program interface of the highest version supported by the computer device to perform image processing, and can ensure not only the image processing effect but also the normal running of the application program. The technical scheme is as follows:
in one aspect, an embodiment of the present disclosure provides an application program running method, applied to a computer device, where the computer device has a first application program and a second application program, and the method includes:
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 perform image processing;
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 with the highest version supported by the computer equipment in the first application program interface and the second application program interface to perform image processing 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.
Optionally, the determining, by the first application program, the running state of the second application program includes:
the first application program obtains running state indication information sent by a second application program in an interprocess communication mode, and the running state indication information is used for indicating the running state of the second application program.
Optionally, the determining, by the first application program, the running state of the second application program includes:
the first application program acquires indication information sent by a second application program in an interprocess communication mode;
the first application program responds to the received indication information and obtains 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 determining, by the first application program, the running state of the second application program includes:
the first application program obtains a preset file after a preset duration 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 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;
or, the determining, by the first application program according to the preset file, the running state of the second application program includes:
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 calling the first application program interface; or,
if the preset file is empty, determining that the running state of the second application program is abnormal running;
or, the determining, by the first application program according to the preset file, the running state of the second application program includes:
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 calling the first application program interface; or,
and 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 calling the first application program interface.
Optionally, the invoking, by the first application program, the first application program interface of the highest version supported by the computer device in the first application program interface and the second application program interface for image processing based on the running state of the second application program includes:
when the running state of the second application program is normal running, calling the first application program interface to perform image processing on the first application program;
or when the running state of the second application program is abnormal running, calling the second application program interface to perform image processing on the first application program.
Optionally, the first application program interface is an interface of a version above DirectX11, and the second application program interface is an interface of a version below 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 including:
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 perform image processing;
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 application program interface with the highest version supported by the computer equipment in the first application program interface and the second application program interface to perform image processing 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, an embodiment of the present disclosure provides a computer device, including: the application program running method comprises a memory and a processor, wherein the memory and the processor are mutually connected in a communication mode, the memory stores computer instructions, and the processor executes the computer instructions so as to execute any one of the application program running methods.
In another aspect, the present disclosure provides a computer-readable storage medium, which stores computer instructions for causing the computer to execute any one of the application program running methods.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
in the embodiment of the disclosure, the first application starts the second application during the starting process of the first application, and determines the running state after the second application calls the first application interface, where the running state can reflect whether the computer device supports the first application interface, and therefore, the application interface of the highest version supported by the computer device can be selected from the first application interface and the second application interface according to the running state of the second application to perform the image processing of the first application. Under the condition, if the computer equipment supports the first application program interface with a higher version, the first application program calls the first application program interface to perform image processing, so that a better image processing effect is obtained; and if the computer equipment does not support the first application program interface with the higher version, the first application program calls the second application program interface with the lower version to perform image processing, so that the normal operation of the first application program is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow diagram illustrating a method for application execution in accordance with an illustrative embodiment;
FIG. 2 is a flowchart illustrating a method of running an application in accordance with an exemplary embodiment;
FIG. 3 is a flowchart illustrating a method of running an application according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of running an application in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating an application execution apparatus in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram illustrating a configuration of a computer device, according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
The embodiment of the disclosure is applicable to a computer device installed with an application program requiring image processing by calling an application program interface. The application may be, for example, an anchor program, a game program, or the like. 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 smartphone, a tablet, a laptop or desktop computer, or the like.
Fig. 1 is a flowchart illustrating an application running method according to an exemplary embodiment, where the method is applied to a computer device having a first application and a second application, and an execution subject of the method is the first application, for example, the aforementioned anchor program, as shown in fig. 1, and the method includes:
step S101: the first application program starts the second application program in the starting process.
In the embodiment of the disclosure, the second application program is used for calling the first application program interface to perform image processing. In the embodiment of the present disclosure, the second application may be an application that cannot be perceived by the user, and the second application may invoke the first application interface to perform image processing without being perceived by the user, so as to improve user experience.
Step S102: the first application determines an operating state of the second application.
In an embodiment of the present disclosure, the running state of the second application is used to reflect whether the computer device supports the first application interface. Illustratively, the running states of the second application are two types: one is a normal operation state, for example, the second application program can call the first application program interface to execute the instruction correctly without crashing, and the other is an abnormal operation state, for example, the second application program calls the first application program interface to execute the instruction without crashing but the instruction is executed wrongly, or the second application program crashes after calling the first application program interface.
Step S103: 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 perform image processing based on the running state of the second application program.
In an embodiment of the present disclosure, the version of the second application program interface is lower than the version of the first application program interface.
Optionally, in this embodiment of the disclosure, the first application interface is an interface of a version above DirectX11, that is, the first application interface is an application interface of DirectX11, or an application interface of a subsequent version of DirectX11, and the second application interface is an interface of a version below DirectX9, that is, the second application interface is an application interface of DirectX9, or an application interface of a previous version of DirectX 9.
In the embodiment of the disclosure, the first application starts the second application during the starting process of the first application, and determines the running state after the second application calls the first application interface, where the running state can reflect whether the computer device supports the first application interface, and therefore, the application interface of the highest version supported by the computer device can be selected from the first application interface and the second application interface according to the running state of the second application to perform the image processing of the first application. Under the condition, if the computer equipment supports the first application program interface with a higher version, the first application program calls the first application program interface to perform image processing, so that a better image processing effect is obtained; and if the computer equipment does not support the first application program interface with the higher version, the first application program calls the second application program interface with the lower version to perform image processing, so that the normal operation of the first application program is ensured.
Fig. 2 is a flowchart illustrating an application running method according to an exemplary embodiment, where the method is applied to a computer device having a first application and a second application, and an execution subject of the method is the first application, for example, the aforementioned anchor program, as shown in fig. 2, and the method includes:
step 201: the first application program is started in response to an execution instruction received by the computer device.
Illustratively, a user of the computer device inputs an operation instruction of a first application program to the computer device through an input device such as a keyboard, a touch screen or a mouse, and the first application program starts to be started in response to the operation instruction.
Step 202: during the start-up process of the first application, the first application starts up the second application.
Illustratively, the first application may launch the second application upon instance initialization.
Optionally, during the starting process of the first application, the second application may be started by any one of the following instructions: instructions such as ShellExecute, ShellExecuteEx, WinExec, or CreateProcesses.
Step 203: the second application program calls the first application program interface to perform image processing.
Illustratively, the second application program calls the first application program interface for image processing after being started. The second application program can be a background program, so that the user can not sense the second application program and can not influence the use feeling of the user on the first application program.
Step 204: and the second application program sends the running state indication information to the first application program in an interprocess communication mode.
In the embodiment of the present disclosure, the running state indication information is used to indicate the running state of the second application.
Illustratively, if the second application program operates normally (i.e. does not crash and receives feedback information that the execution result is correct) after calling the first application program interface for image processing, the second application program sends first operation state indicating information to the first application program, wherein the first operation state indicating information is used for indicating that the second application program operates normally.
And if the second application program abnormally operates after calling the first application program interface for image processing, namely the second application program crashes or receives feedback information indicating that the execution result is wrong, the second application program sends second operation state indication information to the first application program, wherein the second operation state indication information is used for indicating that the second application program abnormally operates.
For example, in order to enable the second application program to send the running state indication information to the first application program through the inter-process communication after the second application program crashes, the second application program needs to adopt a crash handling 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 is a set exception capture function interface (setunhandleddexceptionfilter), the operating system of the computer equipment calls the crash callback function set by the test program after the test program crashes, and the second application program is controlled to send second running state indication information to the first application program in an interprocess communication mode through the crash callback function.
Alternatively, if the second application receives feedback information indicating that the execution result is incorrect (i.e., there is no crash), the second application may send the second running state indication information to the first application directly through inter-process communication.
Step 205: and the first application program receives the running state indication information sent by the second application program.
Illustratively, the first application program receives the running state indication information sent by the second application program, and the running state indication information may be the first running state indication information or the second running state indication information.
Through steps 204 and 205, the first application can determine the running state of the second application.
Step 206: and calling 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 by the first application program for image processing based on the running state indication information.
Optionally, when the running state indication information is the first running state indication information, it indicates that, of 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, and when the running state indication information is the second running state indication information, it indicates that, of 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 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 interface may be an interface of DirectX11, the second application interface may be an interface of DirectX9, the first application may be an anchor player, and the second application may be a tester.
In the embodiment of the disclosure, the first application starts the second application during the starting process of the first application, and determines the running state after the second application calls the first application interface, where the running state can reflect whether the computer device supports the first application interface, and therefore, the application interface of the highest version supported by the computer device can be selected from the first application interface and the second application interface according to the running state of the second application to perform the image processing of the first application. Under the condition, if the computer equipment supports the first application program interface with a higher version, the first application program calls the first application program interface to perform image processing, so that a better image processing effect is obtained; and if the computer equipment does not support the first application program interface with the higher version, the first application program calls the second application program interface with the lower version to perform image processing, so that the normal operation of the first application program is ensured.
Fig. 3 is a flowchart illustrating an application running method according to an exemplary embodiment, where the method is applied to a computer device having a first application and a second application, and an execution subject of the method is the first application, for example, the aforementioned anchor program, as shown in fig. 3, where the method includes:
step 301: the first application program is started in response to an execution instruction received by the computer device.
For related matters, reference may be made to the foregoing step 201, and a detailed description is omitted here.
Step 302: during the start-up process of the first application, the first application starts up the second application.
For related matters, 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 perform image processing.
Illustratively, the second application program calls the first application program interface for image processing after being started. The second application program can be a background program, so that the user can not sense the second application program and can not influence the use feeling of the user on the first application program.
In a first possible implementation manner, if the second application program operates normally after calling the first application program interface, the preset file may be generated. If the second application program can not normally run after calling the first application program interface, the preset file can not be generated.
In a second possible implementation manner, if the second application program operates normally after calling the first application program interface, the preset file is generated, and the first information is written in the preset file; and if the second application program can not normally run after calling the first application program interface, writing information in the preset file, namely the preset file is empty.
In a third possible implementation manner, if the second application program operates normally after calling the first application program interface, the preset file is generated, and the first information is written in the preset file; and if the second application program can not normally run after calling the first application program interface, writing second information into the preset file. If the second application program crashes after calling the first application program interface, the second information needs to be written into the preset file by the crash callback mechanism, and the related content can be referred to as the step 204.
It should be noted that the default 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 common memory area of the computer device system. Illustratively, the preset file may be a text file (i.e., txt file).
In addition, the specific contents of the first information and the second information are not limited in the embodiments of the present disclosure, as long as whether the second application program operates normally can be distinguished.
Step 304: and the second application program sends the indication information to the first application program in an interprocess communication mode.
For related matters, 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 a preset file.
Step 307: and the first application program determines the running state of the second application program according to the preset file.
In the first possible implementation manner, if the first application program acquires the preset file, it is determined 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 the second possible implementation manner, if first information exists in the preset file, it is determined that the running state of the second application program is normal running, and the first information is written into the preset file when the second application program runs normally 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 the third possible implementation manner, if first information exists in the preset file, it is determined that the running state of the second application program is normal running, and the first information is written into the preset file when the second application program runs normally after the first application program interface is called; or 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 run normally after the first application program interface is called.
Through the 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 perform image processing based on the running state of the second application program.
In the first possible implementation manner, when the first application program acquires the preset file, it is indicated that the second application program is normally running, 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 the first application program does not acquire the preset file, it is indicated that the second running program is abnormally running, 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 second application program interface, and the first application program calls the second application program interface to perform image processing.
In the second possible implementation manner, when first information exists in a preset file acquired by a first application program, it is indicated that the second application program is normally running, and in a first application program interface and a second application program interface, an 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 the preset file acquired by the first application program is empty, the second running program is indicated to be abnormally running, 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 perform image processing.
In the third possible implementation manner, when first information exists in a preset file acquired by a first application program, it is indicated that a second application program is normally running, and in a first application program interface and a second application program interface, an 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 indicated to be abnormally running, the application program interface of the highest version supported by the computer equipment 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.
In the embodiment of the disclosure, the first application starts the second application during the starting process of the first application, and determines the running state after the second application calls the first application interface, where the running state can reflect whether the computer device supports the first application interface, and therefore, the application interface of the highest version supported by the computer device can be selected from the first application interface and the second application interface according to the running state of the second application to perform the image processing of the first application. Under the condition, if the computer equipment supports the first application program interface with a higher version, the first application program calls the first application program interface to perform image processing, so that a better image processing effect is obtained; and if the computer equipment does not support the first application program interface with the higher version, the first application program calls the second application program interface with the lower version to perform image processing, so that the normal operation of the first application program is ensured.
Fig. 4 is a flowchart illustrating an application running method according to an exemplary embodiment, where the method is applied to a computer device having a first application and a second application, and an execution subject of the method is the first application, for example, the aforementioned anchor program, as shown in fig. 4, where the method includes:
step 401: the first application program is started in response to an execution instruction received by the computer device.
For related matters, reference may be made to the foregoing step 201, and a detailed description is omitted here.
Step 402: during the start-up process of the first application, the first application starts up the second application.
For related matters, 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 perform image processing.
For related matters, reference may be made to the aforementioned step 303, and a detailed description is omitted here.
Step 404: the first application program obtains the preset file after the preset duration 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 acquires the preset file after the timer expires.
The relevant content of the preset file can be referred to in step 303, and is not described in detail herein.
Step 405: and the first application program determines the running state of the second application program according to the preset file.
For related matters, reference may be made to the aforementioned step 307, and a detailed description is omitted here.
Through the steps 404 to 307, the first application program can determine the running state of the second application program.
Step 406: 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 perform image processing based on the running state of the second application program.
For related matters, reference may be made to the aforementioned step 308, and a detailed description is omitted here.
In the embodiment of the disclosure, the first application starts the second application during the starting process of the first application, and determines the running state after the second application calls the first application interface, where the running state can reflect whether the computer device supports the first application interface, and therefore, the application interface of the highest version supported by the computer device can be selected from the first application interface and the second application interface according to the running state of the second application to perform the image processing of the first application. Under the condition, if the computer equipment supports the first application program interface with a higher version, the first application program calls the first application program interface to perform image processing, so that a better image processing effect is obtained; and if the computer equipment does not support the first application program interface with the higher version, the first application program calls the second application program interface with the lower version to perform image processing, so that the normal operation of the first application program is ensured.
In the embodiment shown in fig. 4, inter-process communication between the first application and the second application is not required, and the implementation is simpler.
Fig. 5 is a schematic structural diagram illustrating an application running apparatus according to an exemplary embodiment, the apparatus being applied to a computer device having a first application and a second application therein, and as shown in fig. 5, the apparatus includes:
a starting module 501, configured to start a second application program in a starting process of a first application program, where the second application program is used to call a 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;
a processing module 503, configured to call, based on the running state of the second application program, the application program interface with the highest version supported by the computer device in the first application program interface and the second application program interface to perform image processing, where the version of the second application program interface is lower than the version of the first application program interface.
In an implementation manner of the embodiment of the present disclosure, the determining module 502 is configured to obtain, by means of inter-process communication, 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 an implementation manner of the embodiment of the present disclosure, the determining module 502 is configured to obtain indication information sent by a second application program in an inter-process communication manner; responding to the received indication information, and 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 an operation process of the second application; and determining the running state of the second application program according to the preset file.
Exemplarily, 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 acquires 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 determining, by the first application program according to the preset file, the running state of the second application program includes:
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 calling the first application program interface; or,
if the preset file is empty, determining that the running state of the second application program is abnormal running;
or, the determining, by the first application program according to the preset file, the running state of the second application program includes:
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 calling the first application program interface; or,
and 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 calling the first application program interface.
In this embodiment of the present disclosure, the processing module 503 is configured to call the first application program interface to perform image processing on 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 perform image processing on the first application program.
Optionally, the first application program interface is an interface of a version below DirectX9, and the second application program interface is an interface of a version above DirectX 11.
FIG. 6 is a schematic diagram illustrating a configuration 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 information transfer between various elements 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, input/output controller 610 may also provide 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.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. 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 appreciate that the computer storage media is not limited to the foregoing. The system memory 604 and mass storage device 607 described above may be collectively referred to as memory.
The computer device 600 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the invention. That is, the computer device 600 may be connected to the network 612 through the network interface unit 611 connected to the system bus 605, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 611.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processing unit 601 implements the application program running 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, such as a memory, including instructions executable by a processor of a computer device to perform the application execution methods illustrated in the various embodiments of the present invention is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is meant to be illustrative of the principles of the present disclosure and not to be taken in a limiting sense, and any modifications, equivalents, improvements and the like that are within the spirit and scope of the present disclosure are intended to be included therein.

Claims (10)

1. An application program running method applied to a computer device, wherein the computer device is provided with a first application program and a second application program, the method comprises the following steps:
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 perform image processing;
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 with the highest version supported by the computer equipment in the first application program interface and the second application program interface to perform image processing 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.
2. The method of claim 1, wherein determining the operating state of the second application by the first application comprises:
the first application program obtains running state indication information sent by a second application program in an interprocess communication mode, and the running state indication information is used for indicating the running state of the second application program.
3. The method of claim 1, wherein determining the operating state of the second application by the first application comprises:
the first application program acquires indication information sent by a second application program in an interprocess communication mode;
the first application program responds to the received indication information and obtains 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 determining the operating state of the second application by the first application comprises:
the first application program obtains a preset file after a preset duration 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 determining, by the first application program, the running state of the second application program according to the preset file comprises:
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;
or, the determining, by the first application program according to the preset file, the running state of the second application program includes:
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 calling the first application program interface; or,
if the preset file is empty, determining that the running state of the second application program is abnormal running;
or, the determining, by the first application program according to the preset file, the running state of the second application program includes:
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 calling the first application program interface; or,
and 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 calling the first application program interface.
6. The method according to any one of claims 1 to 4, wherein the first application program calls a highest version of the first and second application program interfaces supported by the computer device for image processing based on the running state of the second application program, and the method comprises:
when the running state of the second application program is normal running, calling the first application program interface to perform image processing on the first application program;
or when the running state of the second application program is abnormal running, calling the second application program interface to perform image processing on the first application program.
7. The method of any of claims 1 to 4, wherein the first application program interface is an interface of a version above DirectX11, and the second application program interface is an interface of a version below DirectX 9.
8. An application program execution apparatus applied to a computer device having a first application program and a second application program 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 perform image processing;
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 application program interface with the highest version supported by the computer equipment in the first application program interface and the second application program interface to perform image processing 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.
9. A computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the application program execution method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the application program execution method according to any one of claims 1 to 7.
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 true CN111142979A (en) 2020-05-12
CN111142979B 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
CN111142979B (en) 2023-09-22

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
US10802847B1 (en) System and method for reproducing and resolving application errors
US8335942B2 (en) Hang recovery in software applications
JPWO2013103023A1 (en) Information processing apparatus, information processing method, and computer program
US8103908B2 (en) Method and system for recovery of a computing environment during pre-boot and runtime phases
CN102779050A (en) System and method for accelerated boot performance
US20180246840A1 (en) Intelligent Certificate Discovery in Physical and Virtualized Networks
JP2010086364A (en) Information processing device, operation state monitoring device and method
CN110413293A (en) The method and device that system deployment process modifies to standard mirror image
CN111142979B (en) Application program running method, device, computer equipment and storage medium
US10628513B2 (en) Providing isolated extensibility for webpages with a unified manifest and omni-accessible platform script
WO2013008326A1 (en) Software verification method and software verification system
WO2008048581A1 (en) A processing device operation initialization system
CN110727945B (en) Virus scanning method, device and computer readable medium
US9317324B2 (en) Automatic service lifecycle management
US8832420B2 (en) Computer system and booting method thereof
JP2012173956A (en) Host device to which usb device is connected and program of the same
US8869137B2 (en) Information processing apparatus that automatically and sequentially displays graphical user interface images and recording medium storing program
JP6919399B2 (en) Judgment program, information processing device, and judgment method
CN107341065B (en) Method and device for outputting debugging information
CN115562745A (en) Method and system for realizing desktop service
CN116107661A (en) Method and device for starting server, electronic equipment and storage medium
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