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
New API example crashes [CORE5376] #5649
Comments
Modified by: @AlexPeshkoffassignee: Alexander Peshkov [ alexpeshkoff ] |
Commented by: @AlexPeshkoff Not reproduced on fpc: # fpc -Fu../../src/include/gen/ -Mdelphi 01.create.pas Afraid I hurried a bit trying to help with win-specific issue |
Modified by: @AlexPeshkoffassignee: Alexander Peshkov [ alexpeshkoff ] => |
Commented by: @aafemt Yes, with FPC 3.0.0 it works. The issue should be related to Delphi. |
Commented by: Boris Vinkler (borisvin) I wrote the code below in Delphi XE 3 (the code is written from the example "01.create.pas"). Could anyone please help me to manage how to pass the encryption key from delphi application to the Firebird server? Program create; uses var
type function IKeyCallback.callback(dataLength: Cardinal; data: Pointer; bufferLength: Cardinal; buffer: Pointer): Cardinal; var param1:String; begin
end. |
Commented by: @paulbeach According to Alexey Kovyazin this compiles fine using Delphi XE6 or XE7, I wonder if there is a problem with earlier versions of Delphi? On cross checking this code will run as well... i.e. Alexey did manage to get the code to also work with an encrypt library and passed the key via the application. So the version of Delphi does seem to be an issue. |
Commented by: @aafemt Yes, the problem is data types. Especially NativeInt. |
Submitted by: @aafemt
Example 01.create.pas crashes on run because master.getUtilInterface returns nil.
The text was updated successfully, but these errors were encountered: