ODAC 6.70 and original FreePascal (non Lazarus)

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Legion
Posts: 30
Joined: Wed 01 Jun 2005 15:38
Location: Russia

ODAC 6.70 and original FreePascal (non Lazarus)

Post by Legion » Fri 10 Oct 2008 09:47

How I can use ODAC 6.70 with FreePascal (console version)?
I run this program

Code: Select all

program test;
uses Ora;
var OraSession: TOraSession;
begin
  OraSession := TOraSession.Create(nil);
  OraSession.Options.Net := False;
  OraSession.ConnectString := 'scott/tiger@server';
  OraSession.Connect;
  OraSession.Free;
end.
and see as result

Code: Select all

An unhandled exception occurred at $0040F284 :
Exception : ODAC trial version requires Delphi IDE
  $0040F284
  $0046C8F1
  $0040FA6A

Legion
Posts: 30
Joined: Wed 01 Jun 2005 15:38
Location: Russia

Post by Legion » Mon 13 Oct 2008 14:57

Up

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 14 Oct 2008 13:20

This is the trial protection. You can run a program compliled with ODAC only when Lazarus IDE is running (there is a mistake in the message - should be Lazarus instead of Delphi).

In the next ODAC build we'll consider the possibility to change the trial protection for users that don't use Lazarus.

Post Reply