F
fjw
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了一个线程,非常简单,仅仅是测试我的服务程序(ISAPI).
这部分代码在测试窗口执行正常(说明ISAPI正常),但放到线程中执行报违例
“标记没有引用存储”,真是百思不得其解。求助各位大虾了。
procedure TTestThread.Execute;
var
HTTPRIO: THTTPRIO;
aIntf: IMyTestService;
Result : Integer;
begin
HTTPRIO := THTTPRIO.Create(nil);
HTTPRIO.URL :='HTTP:192.168.0.1//MyWebService/MyWebServer.DLL/SOAP';
aIntf := HTTPRIO as IMyTestService;
try
try
Result := aIntf.MyTestFunc;
finally
HTTPRIO.Free;
aIntf := nil;
end;
except
On E:Exceptiondo
;
// 此处报违例“标记没有引用存储”
end;
end;
这部分代码在测试窗口执行正常(说明ISAPI正常),但放到线程中执行报违例
“标记没有引用存储”,真是百思不得其解。求助各位大虾了。
procedure TTestThread.Execute;
var
HTTPRIO: THTTPRIO;
aIntf: IMyTestService;
Result : Integer;
begin
HTTPRIO := THTTPRIO.Create(nil);
HTTPRIO.URL :='HTTP:192.168.0.1//MyWebService/MyWebServer.DLL/SOAP';
aIntf := HTTPRIO as IMyTestService;
try
try
Result := aIntf.MyTestFunc;
finally
HTTPRIO.Free;
aIntf := nil;
end;
except
On E:Exceptiondo
;
// 此处报违例“标记没有引用存储”
end;
end;