[omniORB] Newbie, Access violation Calling OmniOrb Server from Delphi Client

SI SOL si_sol at yahoo.com
Sun Apr 2 05:16:05 BST 2006


Dear All,

I'm new to omniorb. I have installed omniorb 4.0.7 on
win2k and successfully run the supplied echo sample
(eg3_impl/eg3_tieimpl server and eg3_clt client).
Next, I tried to call the server from client written
in borland delphi (I know delphi usually use
visibroker corba, not omniorb). Below is the code
snippet :

unit Main;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics,
Controls, Forms, Dialogs, 
  Corba, echo_c, echo_i, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Edit1: TEdit;
    procedure Button1Click(Sender: TObject);
  private
  { private declarations }
  protected
    // declare your Corba interface variables like
this
    MyCorbaObj : Echo;

    procedure InitCorba;
  { protected declarations }
  public
  { public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.InitCorba;
begin
  // Initialize the corba;
  CorbaInitialize;

  // Bind to the Corba server
  MyCorbaObj := TEchoHelper.Bind;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  // Call the corba server
  Edit1.Text := MyCorbaObj.echoString('This is my
first test !');
end;

end.

I use the same IDL file as in the echo sample, but I
get access violation error. Am I missing something
here ?. Is it posible to call omniorb server from
other language (the server remain in C++, but the
client written in other language) ?.

Thanks in advance,
Regard,
 
si sol



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the omniORB-list mailing list