Valentina 3 COM and Delphi

Ivan Smahin IvanSmahin at public.kherson.ua
Thu Jul 5 08:33:39 CDT 2007


Hello Martin,

Thursday, July 5, 2007, 12:35:06 PM, you wrote:

MS> Hi,

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

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

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

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


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

MS> can anybody say me what I'm doing wrong?


     V3 := CoValentina.Create;
     V3.InitClient(10 * 1024 * 1024);
     
     V3Conn := CoVConnection.Create;
     V3Conn.Init('localhost','sa','sa',15432,20,'');
     V3Conn.Open;

     
-- 
Best regards,
Ivan Smahin 
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com



More information about the Valentina mailing list