PB640a1 : bug with strings

Post bugreports for the Windows version here
drgolf
Enthusiast
Enthusiast
Posts: 122
Joined: Tue Mar 03, 2009 3:40 pm
Location: france

PB640a1 : bug with strings

Post by drgolf »

Hello,

Code: Select all

Define s.s,t.s
For i=1 To 10
s=Chr(0)+s+"123"  
Next

Debug s

;[08 :58 :59] [ERREUR] Accès mémoire invalide. (erreur de lecture à l'adresse 18446744073709551608)
;[08 :59 :01] Le programme a été arrêté.

This code work with PB 630 but not with 640...

I am affraid for my apps with string...

Another thing is that IDE is very instable and freeze.
User avatar
jacdelad
Addict
Addict
Posts: 2062
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PB640a1 : bug with strings

Post by jacdelad »

Fred wrote in the initial post about 6.40 Beta 1, that the strings must noch contain zeroes (as in "Chr(0)").
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/2*DX517, 164TB+82TB+28TB+2TB SSD
Post Reply