exception on connect in UniConnection component

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Lepsik
Posts: 12
Joined: Mon 27 Feb 2012 17:45
Contact:

exception on connect in UniConnection component

Post by Lepsik » Mon 27 Feb 2012 17:58

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.

lao
Posts: 71
Joined: Wed 10 Dec 2008 10:56

Post by lao » Tue 28 Feb 2012 08:16

Hi,
Do you add a database provider component on your form?
tools palette->unidacs providers
Witch database do you use?
Regards

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 28 Feb 2012 10:43

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.

Lepsik
Posts: 12
Joined: Mon 27 Feb 2012 17:45
Contact:

Post by Lepsik » Tue 28 Feb 2012 14:41

Thank you.

It works just great. :lol:

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 28 Feb 2012 14:57

Hello,

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

Post Reply