Page 1 of 1

ODAC 6.70 and original FreePascal (non Lazarus)

Posted: Fri 10 Oct 2008 09:47
by Legion
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

Posted: Mon 13 Oct 2008 14:57
by Legion
Up

Posted: Tue 14 Oct 2008 13:20
by Plash
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.