Differences between 6.1 5.73

Everything else that doesn't fall into one of the other PB categories.
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Differences between 6.1 5.73

Post by kinglestat »

Is there an official list of the differences between these 2 versions? I had code which worked well, and now it doesn't
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
User avatar
mk-soft
Always Here
Always Here
Posts: 6204
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Differences between 6.1 5.73

Post by mk-soft »

See PB Help History.

Error message when compiling ?
Where is the problem?
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
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Re: Differences between 6.1 5.73

Post by kinglestat »

no errors when compiling
crashes when ran....hence my question
It is a compiler, and quite difficult to isolate where the issue comes from which is why I didn't post any code
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Differences between 6.1 5.73

Post by Fred »

You can check if you have '.l' where pointer or '.i' should be needed, it's probably the most relevant change if you encounter a crash
User avatar
mk-soft
Always Here
Always Here
Posts: 6204
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Differences between 6.1 5.73

Post by mk-soft »

Secure storage management is now used. This means that IDs or handles can be larger than 32 bits.
So if you use ID's or handles as long (.l) in the programme, problems will occur. You must use integer (.i) (which has always been the case)
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
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: Differences between 6.1 5.73

Post by juergenkulow »

kinglestat wrote: Tue Apr 30, 2024 2:19 pm Is there an official list of the differences between these 2 versions? I had code which worked well, and now it doesn't
PureBasic 6.00 released !
PureBasic 6.01 LTS is released !
PureBasic 6.02 LTS is out !
PureBasic 6.03 LTS is released !
PureBasic 6.04 LTS is out !
PureBasic 6.10 LTS is out !
PureBasic 6.11 LTS Beta 2 is ready for testing !
Please ask your questions, because switch on the cognition apparatus decides on the only known life in the universe.Wersten :DDüsseldorf NRW Germany Europe Earth Solar System Flake Bubble Orionarm
Milky Way Local_Group Virgo Supercluster Laniakea Universe
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Re: Differences between 6.1 5.73

Post by kinglestat »

I am using .l some place. Will check that out
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
BarryG
Addict
Addict
Posts: 4127
Joined: Thu Apr 18, 2019 8:17 am

Re: Differences between 6.1 5.73

Post by BarryG »

Fred wrote: Tue Apr 30, 2024 4:12 pm You can check if you have '.l' where pointer or '.i' should be needed, it's probably the most relevant change if you encounter a crash
This was my experience. I switched to ".i" in several places and my app is rock-solid again now. I only compile as 64-bit now as well.
User avatar
jacdelad
Addict
Addict
Posts: 1992
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Differences between 6.1 5.73

Post by jacdelad »

No offence and obviously many people do/did this, but what makes/made you use .l instead of .i? The help is (more or less) clear about handles and addressing, plus it is a bit extra work to add ".l" instead of leaving the suffix completely (and automatically choose the right one)?
I'm not asking to feel superior, this is a serious question (please don't hurt me!).
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
BarryG
Addict
Addict
Posts: 4127
Joined: Thu Apr 18, 2019 8:17 am

Re: Differences between 6.1 5.73

Post by BarryG »

Mine was back in the days when I was compiling 32-bit only, and ".i" didn't exist back then (it was introduced in v4.30 in 2008, so 16 years ago). My first PureBasic was v2.40, so I've been using it for over 23 years now.

Plus I was using other people's code from these forums where they accidentally used ".l" instead of ".i" and I just was copy/pasting and not knowing they had it wrong.

And (correct me if I'm wrong) some API structures still actually require ".l" for some flags?
User avatar
mk-soft
Always Here
Always Here
Posts: 6204
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Differences between 6.1 5.73

Post by mk-soft »

BarryG wrote: Wed May 01, 2024 10:08 am And (correct me if I'm wrong) some API structures still actually require ".l" for some flags?
That is correct. The API structures use a lot of DWord (PB Long). Therefore it was a lot of work to rewrite the structures from 32 bit to 64 bit.
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
User avatar
jacdelad
Addict
Addict
Posts: 1992
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Differences between 6.1 5.73

Post by jacdelad »

Yes, a lot of Windows APIs need .l, not .i
I didn't realize the .i was introduced so late (though it's already been a while), I joined with 5.11.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
AZJIO
Addict
Addict
Posts: 2143
Joined: Sun May 14, 2017 1:48 am

Re: Differences between 6.1 5.73

Post by AZJIO »

I found the "Migration guide" section, but there is nothing there for new versions
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Differences between 6.1 5.73

Post by netmaestro »

jacdelad wrote:No offence and obviously many people do/did this, but what makes/made you use .l instead of .i?
In the early days there was no .i type. That's how the habits were formed.
BERESHEIT
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Differences between 6.1 5.73

Post by boddhi »

And some PB functions, like Date(), didn't need .i, only .l, until PB 6.10 regardless 32 or 64-bit OS.
I think that many codes using these functions should no longer work for this reason too.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Post Reply