I was using Pascal Script in Delphi 11. With 32-bit version , it was good and i got the o/p as expected. When it comes to 64-bit am getting Null pointer exception in a particular function “function TPSScript.Execute: Boolean;”.
Even though i downloaded latest code from github, am getting the same error.
my colleague Eugene is out of office for vacation this week, but I will ask im to try to have a look next week, if he can.
Do note that Pascal Script is not receiving official support from us anymore.
I can’t reproduce AV with the TestApp sample that is launched in x64 mode:
Can you create and attach a simple testcase that reproduces this issue, pls?
pascal.pas (3.7 KB)
can you please go through this
I need working sample - your file contains a lot of references to other files and it cannot be compiled as is.
as I understand, your script is located in
Can you simplify code and/or upload your project, pls?
you can drop email to support@ for keeping privacy.
As said, i sent mail to firstname.lastname@example.org. Your help will be very useful to us. Thanks
Since our company was blocking the mail, I had no idea if you had received it or not. I was able to pinpoint the cause of the 64-bit exception we were experiencing, and this is why: the exception occurs when we attempt to use a function that returns a string. The function won’t throw an exception if it returns other datatypes.
Although I followed all the instructions in that link, AV is still appearing. I’ve included a sample file for 64-bit testing in the attachment. Please execute the program in Delphi 64-bit mode.
Sample.pas (3.1 KB)
everything works as expected.
testcase.zip (7.2 KB)
have you replaced content of
InvokeCall.inc with provided code?
Am unable to compile script on both 32-bit and 64-bit. I have changed the Invokecall.inc file with the provided code.
Could you please help me to what’s wrong with the code.
What error(s) do you get?
No error, it simply sets the compiler to free and then exit of that if block
Have you tried to use my testcase?
The testcase was successful and I could able to see the O/P. I modified your test case , then i faced this problem.
The testcase was successful and I could able to see the O/P.
I modified your test case , then I faced this problem
(No errors, it simply exits from the compile condition and giving me blank O/P).
for downloading your testcase I must have existing account at microsoftonline.com …
Can you send your testcase to support@, pls?
by other have you can login to https://talk.remobjects.com and send PM to
FWIW, even having an account woudln’t have saved you ;). this is what I get.