Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: UDF invalid request BLR at offset 163


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Dec 4, 2016 12:53 AM Last Post By: Eric ten Westen... Threads: [ Previous | Next ]
Eric ten Westen...

Posts: 8
Registered: 4/4/10
UDF invalid request BLR at offset 163  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 3, 2016 8:17 AM
Hi

Just turning over to Interbase 64

Have UDF

dpr:
 
exports
  Echo;
 
function Echo(AString: PAnsiChar): PAnsiChar; cdecl;
begin
  Result := ib_util_malloc(Length(AString) + 1);
  StrPCopy(Result, AnsiString(AString));
end;


Defined in database:

DECLARE EXTERNAL FUNCTION ECHO
CSTRING(255) CHARACTER SET NONE
RETURNS CSTRING(255) CHARACTER SET NONE FREE_IT
ENTRY_POINT 'Echo' MODULE_NAME 'LoyaltyIbxFunctions';

ib_utl64.dll in C:\Program Files (x86)\Embarcadero\Studio\18.0\InterBaseXE7\bin
DLL in Interbase UDF folder: C:\Program Files (x86)\Embarcadero\Studio\18.0\InterBaseXE7\UDF

But calling select echo('fff') from rdb$database still gives me nvalid request BLR at offset 163, function not found

Eric

Eric ten Westen...

Posts: 78
Registered: 12/8/99
Re: UDF invalid request BLR at offset 163  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2016 12:53 AM   in response to: Eric ten Westen... in response to: Eric ten Westen...
Hi

I used a DLL Viewer to look at the differences between the standard UDF which comes with Interbase and my dll
I hav 1 function but i see 3 more entries which are not in the standard UDF

1) __dbk_fcall_wrapper
2) dbkFCallWrapperAddr
3) TMethodImplementationIntercept

Does this ring a bell?

Eric

Eric ten Westenend wrote:
Hi

Just turning over to Interbase 64

Have UDF

dpr:
 
exports
  Echo;
 
function Echo(AString: PAnsiChar): PAnsiChar; cdecl;
begin
  Result := ib_util_malloc(Length(AString) + 1);
  StrPCopy(Result, AnsiString(AString));
end;


Defined in database:

DECLARE EXTERNAL FUNCTION ECHO
CSTRING(255) CHARACTER SET NONE
RETURNS CSTRING(255) CHARACTER SET NONE FREE_IT
ENTRY_POINT 'Echo' MODULE_NAME 'LoyaltyIbxFunctions';

ib_utl64.dll in C:\Program Files (x86)\Embarcadero\Studio\18.0\InterBaseXE7\bin
DLL in Interbase UDF folder: C:\Program Files (x86)\Embarcadero\Studio\18.0\InterBaseXE7\UDF

But calling select echo('fff') from rdb$database still gives me nvalid request BLR at offset 163, function not found

Eric

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02