Oci functions is not linked again

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Phantom666
Posts: 4
Joined: Tue 01 Nov 2005 07:32
Location: Kazakhstan

Oci functions is not linked again

Post by Phantom666 » Mon 17 Mar 2008 06:11

I migrated from odac 5.55 to odac 6.25 and get this message when distributed my application on clients machines.
My C++ application send pointer on OraSession component in other dll's.
In main application is not work query parameters and dll's show me "Oci functions is not linked again".

What's wrong? Help me please!

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

Post by Plash » Mon 17 Mar 2008 08:12

If you build your main application and DLLs without ODAC runtime packages, you need to call InitOCI procedure from OraCall unit (or InitNet from OraNet unit for connection in Direct mode) in the DLL before using ODAC.

If you build your main application and DLLs with ODAC runtime packages, it is not required to call InitOCI.

Phantom666
Posts: 4
Joined: Tue 01 Nov 2005 07:32
Location: Kazakhstan

Post by Phantom666 » Mon 17 Mar 2008 09:02

Plash wrote:If you build your main application and DLLs without ODAC runtime packages, you need to call InitOCI procedure from OraCall unit (or InitNet from OraNet unit for connection in Direct mode) in the DLL before using ODAC.

If you build your main application and DLLs with ODAC runtime packages, it is not required to call InitOCI.
I built my main application and DLLs with ODAC runtime packages and distributed their together. But it's not work.
And why in main application is not work next code:
Query->ParamByName("rUserID")->DataType = ftInteger;
Query->ParamByName("rUserID")->Value = uid; // uid =631
ShowMessage(IntToStr(Query->ParamByName("rUserID")->Value)); // Query->ParamByName("rUserID")->Value = 7428374682 - it's wrong :(

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

Post by Plash » Tue 18 Mar 2008 08:51

We could not reproduce the problem. Please send to odac*crlab*com a complete small sample that demonstrates the problem, including the script for creating database objects.

Post Reply