Page 1 of 1

[Done] PB 6.40 Alpha 1 - Can't use UCase and LCase on the same string during concation

Posted: Mon Jan 26, 2026 11:48 pm
by STARGÅTE
This code generates an IMA in line 7:

Code: Select all

Procedure.s Test(String.s)
	ProcedureReturn UCase(String) + LCase(String)
EndProcedure

Define String.s = "UpperLower"

Define NewString.s = Test(String)

Debug NewString
Or even simpler:

Code: Select all

Define String.s = "UpperLower"

Define NewString.s = UCase(String) + LCase(String)

Debug NewString

Re: PB 6.40 Alpha 1 - Can't use UCase and LCase on the same string during concation

Posted: Wed Jan 28, 2026 11:03 am
by Fred
You had the purifier on ?

Re: PB 6.40 Alpha 1 - Can't use UCase and LCase on the same string during concation

Posted: Wed Jan 28, 2026 11:18 am
by STARGÅTE
Fred wrote: Wed Jan 28, 2026 11:03 am You had the purifier on ?
No. I used a fresh installation. Nothing is enabled in the compiler options, except the debugger.
Output is:
[11:17:31] Waiting for executable to start...
[11:17:31] Executable type: Windows - x64 (64bit, Unicode)
[11:17:31] Executable started.
[11:17:31] [ERROR] Line: 7
[11:17:31] [ERROR] Invalid memory access. (read error at address 18446744072099135680)

Re: PB 6.40 Alpha 1 - Can't use UCase and LCase on the same string during concation

Posted: Wed Jan 28, 2026 11:29 am
by Fred
I see, seems to be fixed in my current build.