Null pointer Exception in Pascal Script for Delphi in 64-bit

Hi,

I’m experiencing an access violation for the same issue—a function returning a string—but this time, the function is producing a SQL query.

Does this require additional changes other than existing ones?