[Done] PB640a1 bug with list

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

[Done] PB640a1 bug with list

Post by drgolf »

hello,

This code dont work with PB 640 but work with PB 630 (Windows 11 pro) :

Code: Select all

Global NewList mru.s()

For i=1 To 10
  AddElement(mru())
  mru()=Str(i)+ProgramFilename()
Next
;
ForEach mru()
Debug mru()  
Next

;;
;[17 :28 :15] Attente du démarrage du programme...
;[17 :28 :15] Type d'exécutable: Windows - x64  (64bit, Unicode)
;[17 :28 :15] Exécutable démarré.
;[17 :28 :15] [ERREUR] Ligne: 5
;[17 :28 :15] [ERREUR] Accès mémoire invalide. (erreur de lecture à l'adresse 18446744073105703264)

User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB640a1 bug with list

Post by mk-soft »

Short bug code

Code: Select all

a.s = Str(i) + ProgramFilename()

Code: Select all

;a.s = Str(i) + ProgramFilename()
;a.s = ProgramFilename() + Str(0)
;a.s = Str(i) + CPUName()
a.s = Str(i) + UserName()
; etc
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 18474
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB640a1 bug with list

Post by Fred »

Does it happen everytime ? Is purifier on ? I can't reproduce it here
breeze4me
Enthusiast
Enthusiast
Posts: 660
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

Re: PB640a1 bug with list

Post by breeze4me »

Fred wrote: Mon Jan 26, 2026 2:40 pm Does it happen everytime ? Is purifier on ? I can't reproduce it here
The error occurs regardless of the purifier setting.
drgolf
Enthusiast
Enthusiast
Posts: 124
Joined: Tue Mar 03, 2009 3:40 pm
Location: france

Re: PB640a1 bug with list

Post by drgolf »

This code :

Code: Select all

Global NewList mru.s()

For i=1 To 10
  AddElement(mru())
  mru()=Str(i)+ProgramFilename()
Next
;
ForEach mru()
Debug mru()  
Next
Crash every time with debuger on and dpi checked.
fryquez
Enthusiast
Enthusiast
Posts: 394
Joined: Mon Dec 21, 2015 8:12 pm

Re: PB640a1 bug with list

Post by fryquez »

You should declare SYS_ConcatString!

Code: Select all

M_SYSFUNCTION(integer) SYS_ConcatString(TCHAR **Address, const TCHAR *String);
Fred
Administrator
Administrator
Posts: 18474
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB640a1 bug with list

Post by Fred »

I tried these snippets with other code below, that's why I didn't noticed this error. Now, the gcc backend will report an error if a function prototype isn't declared, as it should never happen. Thanks fryquez !
Post Reply