New API example crashes [CORE5376] #5649
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
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?
function IKeyCallback.callback(dataLength: Cardinal; data: Pointer; bufferLength: Cardinal; buffer: Pointer): Cardinal;
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.