Valentina 3 COM and Delphi

Martin S. blackfin at elfenherz.de
Thu Jul 5 04:35:06 CDT 2007


Hi,

I'm trying to get Valentina 3 for COM running with Delphi, but with 
little success. For times I've used Valentina with Director, so the 
Delphi part is new to me.

I have implemented Valentina as a Com object, then I tried the following:

var
  V3 : Valentina ;
  V3Conn : VConnection ;
..
....
...

// Form SHOW
procedure TvTestForm.FormShow(Sender: TObject);
begin
  V3 := CreateComObject(CLASS_ValentinaDB) as IValentina ;
  V3.InitClient(10 * 1024 * 1024);
  V3Conn := CreateComObject(CLASS_VConnection) as IVConnection ;
  V3Conn.Init('localhost','sa','sa',15434,120,'');
end;


V3.Init works fine, but I get an exception when it comes to V3Conn.init :
(Access violation on address 00FA4FA3 in module 
Vshared_Win32_release_vc.dll. Reading on Address 000000000)

can anybody say me what I'm doing wrong?


More information about the Valentina mailing list