Home > database >  VFP call DLL dynamic libraries have a timeout
VFP call DLL dynamic libraries have a timeout

Time:10-03

My question is like this to do an interface is to introduce two software data exchange interface is
Software A: my own software
B: software others software
Software dynamic library B: B provides dynamic library

Process: software sends data software B dynamic library and dynamic library B sends data software, software to handle good data sent back to B dynamic library, A dynamic library to handle good data back to the software

Software and A database please please - software B dynamic library software please -> B (dynamic libraries, and software process is not clear between B)

The dynamic library so use

Declare an integer interface in the interface. The DLL string inputdata, string @ outputdata

Now there are two problems:
B 1. Software deal with the data returned to interrupt the process of dynamic link library network dynamic libraries have not received the returned data software A also don't get this will cause inconsistent data and software B situation (dynamic library and software between B may not transaction or for some reason no transaction) this situation is there good processing way

2. The timeout problems encountered two software data inconsistent conditions as it may be because timeout problems
Dynamic library at is called a log is a dynamic library to write their own format below

The 2017-09-08 09:02:49 | | 1. Calling card related dynamic library!
The 2017-09-08 09:02:50 | | 1. Calling card related dynamic library success! TE0014403 | 0 | | | | | | | 00-1 b - B9 - | BB - B3-84
The 2017-09-08 09:02:50 | | 2. Call hxptwebservice service!
The 2017-09-08 09:02:50 | | 2. Call hxptwebservice service success

Call to call success there is A time for two or three seconds normal jet lag software can receive A dynamic library data returned by the
If the time more than 5 seconds (5 seconds is estimate specific also don't know) software received A data returned is an empty
But dynamic library for 5 seconds and then received the software of data that can cause software B B returned data is returned to the dynamic library but because timeout does not return to the software A

The 2017-09-08 09:03:39 | | 1. Calling card related dynamic library!
The 2017-09-08 09:03:48 | | 1. Calling card related dynamic library success!
The 2017-09-08 09:03:48 | | 2. Call hxptwebservice service!
The 2017-09-08 09:03:48 | | 2. Call hxptwebservice service success! <? The XML version="1.0" encoding="utf-8"?


Call dynamic repository is there overtime? If you have can control this time? Or other ways to deal with the data inconsistency problem (there is a problem to real-time processing customers can't etc.)

CodePudding user response:

1, the program begins with _vfp. AutoYield=. F. a try,
2, dynamic library and program B or need networking connection? How not return hours are not fixed?
3, can you do a serial Numbers will receive the data, or dynamic libraries support? Every return data of dynamic link library and the serial number, the program received compare before receive A serial number,

CodePudding user response:

Using dynamic libraries no timeout of
But hxptwebservice obviously is the use of the HTTP protocol, this is a timeout

CodePudding user response:

reference 1st floor apple_8180 response:
1, the program begins with _vfp. AutoYield=. F. a try,
2, dynamic library and program B or need networking connection? How not return hours are not fixed?
3, can you do a serial Numbers will receive the data, or dynamic libraries support? Every return data of dynamic link library and the serial number, the program received compare before receive A serial number,

1. This may be a week at a time will occasionally encounter a bad test
2. Dynamic libraries to connect their database through the line well operators set up a large customers through the line around the VPN connection
3. This is somebody else's increase the number of dynamic link library functions should be impossible to somebody else and not listen to my

I estimate or their own problems
I am now there is something wrong with giving prompt let operator manual reconciliation on both sides of the data to the consistent basically can solve the problem

CodePudding user response:

refer to the second floor xuzuning response:
call dynamic library said no timeout
But hxptwebservice apparently is the use of the HTTP protocol, this is a timeout said


Webservice is timeout

May be they dynamic library
I just want to know is there any overtime, for example: is called dynamic library information back to the 10 seconds? Exactly have the time or 20 seconds if 1 minute didn't return my program has been waiting for?
The appearance of feeling might be a timeout

CodePudding user response:

Agree with 1st floor

CodePudding user response:

Can use _vfp. AutoYield=. F.
  •  Tags:  
  • VFP
  • Related