1

Topic: Interaction VB with background out-process the server

Is ActiveX EXE written on a C ++ which is admissible fulfills coding of video files. Or any other durable task, not an essence important. Also there is a client written on VB which interacts with the server through COM. Sends it a file, and receives as a result of COM event that the file is recoded. Well and in the course of coding, the server  causes  in VB the client, transferring there the data about a course of process of coding.
How to make so that the VB-client it was not frozen, while there is an operation in ActiveX EXE?

2

Re: Interaction VB with background out-process the server

Process of sending of a file to the COM-server process asynchronous or not (that hardly)? And if asynchronous - that about what "freezing" speech? The client has simply nothing to do - here it of anything and does not do...

3

Re: Interaction VB with background out-process the server

The synchronous process certainly

4

Re: Interaction VB with background out-process the server

I want to specify one moment: "hangup" of the client happens only during the reception/data transmission moments, or throughout all time of information handling by the COM-server?

5

Re: Interaction VB with background out-process the server

hclubmk;
All time, the client and the server is one-continuous applications working in the synchronous exchange.

6

Re: Interaction VB with background out-process the server

If operation goes in the synchronous mode it is visible in any way

7

Re: Interaction VB with background out-process the server

It is possible to try App. OLERequestPendingTimeout

8

Re: Interaction VB with background out-process the server

hclubmk wrote:

It is possible to try App. OLERequestPendingTimeout

It that for parameter?

9

Re: Interaction VB with background out-process the server

OLERequestPendingTimeout
If the Com-server not absolutely hard, also implies though any transmission of control (and judging by lifted events - implies), increasing this value, it is possible to avoid message appearance "An action cannot be completed..." At you if I am not mistaken - approximately such pattern? [img=https://kb.intuit.com/library/INTUIT/SBG/FMS/Rodson/Server%20Busy.png]

10

Re: Interaction VB with background out-process the server

hclubmk;
There is no it not a variant. The server too on long locks a flow. Here it is valid or asynchronous calls are necessary from server side.
Or any multithreading from the VB-client.

11

Re: Interaction VB with background out-process the server

Did not try, but like as on a subject https://msdn.microsoft.com/en-us/library/aa719109 (v=vs.71).aspx

12

Re: Interaction VB with background out-process the server

hclubmk wrote:

did not try, but like as on a subject https://msdn.microsoft.com/en-us/library/aa719109 (v=vs.71).aspx

Does not work. https://social.msdn.microsoft.com/Forum … =vbinterop

13

Re: Interaction VB with background out-process the server

I think, from regular - to write separate application which will work with it COM, and has no value, how many it "will hang in a background", and in the main application the data of events to transfer to any of IPC methods. At end of the main application (depending on desire) to complete . Process in case COM did not complete the operation by a natural way.
If there is a desire to tinker with flows - at A.Krivousa (theTrick) were in this subject of operation.

14

Re: Interaction VB with background out-process the server

hclubmk wrote:

I Think, from regular - to write separate application which will work with it COM, and has no value, how many it "will hang in a background", and in the main application the data of events to transfer to any of IPC methods.

Any infernal crutches.

15

Re: Interaction VB with background out-process the server

Eolt wrote:

the Synchronous process certainly

Then only a separate flow for dialogue with the CATFISH, other decisions I do not see.
Google on a phrase "multi-threaded application visual basic-net"

16

Re: Interaction VB with background out-process the server

Akina wrote:

the Synchronous process certainly

Then only a separate flow for dialogue with the CATFISH, other decisions I do not see.
Google on a phrase "multi-threaded application visual basic-net"

It and on VB6 will work.
Question only how to process events from COM object in a separate flow?