18
I have the following code:
CoInitialize(nil);
try
DM_Principal.pLarWS := CreateComObject(LarWS_TLB.CLASS_WS) as IWS;
except
WinExec( 'regasm LarWS.dll /tlb:LarWS.tlb',SW_HIDE);
Screen.Cursor := crHourGlass;
Sleep(3000);
Screen.Cursor := crDefault;
DM_Principal.pLarWS := CreateComObject(LarWS_TLB.CLASS_WS) as IWS;
end;
DM_Principal:
private
larWS: IWS;
public
property pLarWS: IWS read larWS write larWS;
When running without internet the system loops into routine:
DM_Principal.pLarWS := CreateComObject(LarWS_TLB.CLASS_WS) as IWS;
Unable to register, if I try to change the code to register in REGASM also enter infinite loop.
Follow the link of the file LARWS_TLB.pas Filing cabinet.
But how did you set up the connection to the database? it is on the same machine?
– Leandro Angelo
Yes it is on the same machine. But the bank interferes with something?
– Tiago Casanova
It seems to me some kind of permission error, some resource that the credential used doesn’t have privilege or some way that it can’t access. Not to mention the description of the mistake itself.
– Leandro Angelo
@Leandroangelo but when running with internet/webservice works, the problem is when there is no internet or Webservice is offline.
– Tiago Casanova
What is this
LarWS.dll
where we can find this to simulate the problem?– Junior Moreira