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 ofBut hxptwebservice obviously is the use of the HTTP protocol, this is a timeout
CodePudding user response: