New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with UDF in Windows platform (FB2) [CORE1222] #1646
Comments
Commented by: @dyemanov Please show how you declare this function in a database. A complete function body would also be useful. |
Commented by: Marco Castro (mcastro) Dimitry, One of the problem functions is. I belive that the problem is with functions that are related to strings. char* EXPORT fn_upper_c (char* s)
} In the database is DECLARE EXTERNAL FUNCTION MCUPPER Thanks, Marco Castro |
Commented by: Marco Castro (mcastro) This is the UDF definitions where you can simulate the problem there, It works with any table with string data, |
Modified by: Marco Castro (mcastro)Attachment: mcudflib.dll [ 10340 ] |
Commented by: @asfernandes Your code is bug. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @pcisarWorkflow: jira [ 11912 ] => Firebird [ 15119 ] |
Submitted by: Marco Castro (mcastro)
Attachments:
mcudflib.dll
Hello,
I had some UDFs that runs in FB1.5. I'm trying to recompile them to FB2.0 in Windows platform. I'm using Microsoft Visual Studio and compiled with the fbclient_ms.lib library. The DLL was compiled fine, but FireBird does not recognize it correctly with field data. A query like Select mcUpper('test') from rdb$database works. A query like Select mcUpper(User) from Users raises the error described below.
The function call is:
char* EXPORT fn_upper_c (unsigned char* s)
ARGLIST(unsigned char* s)
{
The error in log is:
MARCO_NB (Server) Fri Mar 16 15:48:50 2007
The user defined function: MCUPPER
referencing entrypoint: fn_upper_c
in module: mcudflib
caused the fatal exception: Access violation.
The code attempted to access a virtual
address without privilege to do so.
This exception will cause the Firebird server
to terminate abnormally.
Any help will be nice.
Thanks,
Marco Castro
The text was updated successfully, but these errors were encountered: