Home > Back-end >  Delphi written com how to obtain webservice service
Delphi written com how to obtain webservice service

Time:10-17

With the client (exe) don't obtain webservice service task problem, encapsulate the same code into the com + is wrong to be obtained, general tips for "Access violation at address 01 ec92fd. Write of address 01 ec92fd"

CodePudding user response:

The code posted a look

CodePudding user response:

Com + code to be obtained:
Try
Try
//initial paraphrase, the initialization method and so on other places
CoInitialize (nil);
Acc:=GetWebServer (false, AIP, nil);
XML:=acc. GetTable (ASQL, ASn);
AOutXML:=XML;
Except,
On E: the Exception do
WritelogForTextName (' interface error: '+ e.M essage,' com interfaces);
end;
The finally
CoUninitialize;
end;

CodePudding user response:

There is an error to locate where a line?

CodePudding user response:

Error message and specify lines of code

CodePudding user response:

The bank:
XML:=acc. GetTable (ASQL, ASn);

CodePudding user response:

Through the log capture the information is as follows:
Access violation at address 01 ec92fd. Write of address 01 ec92fd;
-- -- -- -- -- -- -- -- -- -- -- -- --
In my personal tasks, the com + component estimates do not support directly read webservice interface

CodePudding user response:

See the acc:=GetWebServer (false, AIP, nil); Return whether the object is empty,

CodePudding user response:

Delphi contains interface program, the DLL are easy to memory, wrong SHAREMEM, can test,

CodePudding user response:

I met, also don't know how to solve this problem

CodePudding user response:

Try the CoInitializeEx
  • Related