Y
YunZhi
Unregistered / Unconfirmed
GUEST, unregistred user!
机器环境:windows2000+Delphi7+Vbroker4
开发Corba客户端程序时,使用了ior字符串,但运行时异常,代码如下:
procedure TForm1.mnuCn_EnableClick(Sender: TObject);
var
Corobj:CorbaObject;
obj:TORB;
begin
try
CorbaInitialize;
obj:=TORB.Create;
//url 为corba服务器的nameserv的ior
Corobj:=obj.StringToObject(url); //此行运行时产生异常
LoginManager:=TLoginManagerHelper.Narrow(Corobj,true);
orb.Free;
except
on E: Exceptiondo
Memo1.Lines.Add('Bind Fail! ='+E.Message);
end;
end;
异常为:Access violation at address 0045C0DA in module 'Clent.exe'. Read of address 00000000.
请问是什么原因?
开发Corba客户端程序时,使用了ior字符串,但运行时异常,代码如下:
procedure TForm1.mnuCn_EnableClick(Sender: TObject);
var
Corobj:CorbaObject;
obj:TORB;
begin
try
CorbaInitialize;
obj:=TORB.Create;
//url 为corba服务器的nameserv的ior
Corobj:=obj.StringToObject(url); //此行运行时产生异常
LoginManager:=TLoginManagerHelper.Narrow(Corobj,true);
orb.Free;
except
on E: Exceptiondo
Memo1.Lines.Add('Bind Fail! ='+E.Message);
end;
end;
异常为:Access violation at address 0045C0DA in module 'Clent.exe'. Read of address 00000000.
请问是什么原因?