Page 1 of 1

exception on connect in UniConnection component

Posted: Mon 27 Feb 2012 17:58
by Lepsik
I downloded the latest version: UniDAC 4.1 for Delphi 6

In simplest project after trial dialog I having an exeception messages which is crush my application:

---------------------------
Application Error
---------------------------
Exception Exception in module Project1.exe at 000C5159.
---------------------------

In the project I have only one Uni component of the Form:

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, DBGrids, DB, DBAccess, Uni;

UniConnection connects to proven database: h:\db\Tutorial.sq3
(I can open and work with it in different applications)

If I connect in runtime:

procedure TForm1.Button3Click(Sender: TObject);
begin
UniConnection1.Connected := True;
end;

I have the same exception.

Posted: Tue 28 Feb 2012 08:16
by lao
Hi,
Do you add a database provider component on your form?
tools palette->unidacs providers
Witch database do you use?
Regards

Posted: Tue 28 Feb 2012 10:43
by AlexP
Hello,

To solve the problem, you should add the SQLiteUniProvider component (situated on the UniDAC Providers tab) to the form, or add the SQLiteUniProvider module to the uses section of your module.

Posted: Tue 28 Feb 2012 14:41
by Lepsik
Thank you.

It works just great. :lol:

Posted: Tue 28 Feb 2012 14:57
by AlexP
Hello,

Glad to see that the problem was solved. If you have any other questions, feel free to contact us.