Page 1 of 1

About the long (.l) on recent PB...

Posted: Mon Aug 11, 2025 6:30 pm
by Caronte3D
Question:
On what PB version introduced the need to change .l to .i in order to be able to work the same as past?
Sorry I don't know how to explain it (my bad English), but hope you understand :P

Re: About the long (.l) on recent PB...

Posted: Mon Aug 11, 2025 6:47 pm
by Demivec
Are you referring to the process that returns memory allocation addresses that are more random instead of sequential, like low ones first and high ones later, as an added security feature? If so, then you realize that change merely exposed that the variables that needed to be changed were previously declared with the wrong size because they couldn't hold the range of possible memory addresses that could be returned.

I believe it was PureBasic version 6.10.

Here's a link to a reference by Fred: https://www.purebasic.fr/english/viewtopic.php?p=633695#p633695

Re: About the long (.l) on recent PB...

Posted: Mon Aug 11, 2025 7:44 pm
by TI-994A
Caronte3D wrote: Mon Aug 11, 2025 6:30 pmOn what PB version introduced the need to change .l to .i in order to be able to work the same as past?
If I understand correctly, you're referring to the introduction of the first 64-bit version of PureBasic, v4.30, released in December 2008.

It effectively changed the size of integer and long data types, causing some legacy code to break.

Re: About the long (.l) on recent PB...

Posted: Mon Aug 11, 2025 8:30 pm
by Caronte3D
I think Demivec's answer is exactly what I need. Thanks
to both of you! :wink:

Re: About the long (.l) on recent PB...

Posted: Mon Aug 11, 2025 8:33 pm
by Andre
There should be more helpful topics on this forum, but I found another one by 'freak' in the PureBasic Team Blog describing the changes for 64bit: Is your 64bit program really solid ?

Re: About the long (.l) on recent PB...

Posted: Tue Aug 12, 2025 2:06 pm
by TI-994A
Fred wrote: Wed Jan 15, 2025 3:38 pm...it's because your DLL doesn't support ASRL (random memory allocation using all 64-bit range meaning than pointer can be greatly above 32-bit).
Oh dear! That's something new that I hadn't heard about. :shock:

Re: About the long (.l) on recent PB...

Posted: Wed Aug 13, 2025 2:50 am
by idle
So that's the reason. Makes perfect sense now.