PureBasic 6.10 LTS is out !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by ChrisR »

Fred wrote: Mon Jan 01, 2024 6:27 pm Using .l for pointer in x64 is programming mistake, i'm even suprised it worked for you before.
Yes, I fully agree, it's a programming mistake.
But I wanted to inform, here, because those programs are old codes copied from the forum.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by netmaestro »

Much better is *lpbData
BERESHEIT
User avatar
minimy
Enthusiast
Enthusiast
Posts: 551
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by minimy »

Thanks a lot Fred and team and happy 2024!
PB is the beAst!!! sorry the best! ;-)
If translation=Error: reply="Sorry, Im Spanish": Endif
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by pamen »

Agree, it should have been pointed out before and not work at all.
Fixed in my older code, now works, obviously.
S.T.V.B.E.E.V.
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Axolotl »

Has anyone already tried this?

Code: Select all

Debug "#PB_Preference_NoBOM = " + #PB_Preference_NoBOM ; <-- debug output  #PB_Preference_NoBOM = 4 
; OpenPreferences(PreferencesFile$, #PB_Preference_NoSpace | #PB_Preference_GroupSeparator) ; <-- this works in the app
OpenPreferences(PreferencesFile$, #PB_Preference_NoBOM)
That's what I get:

Code: Select all

[16:27:51] [ERROR] OpenPreferences(): invalid value specified for parameter 'Flags'.
I have checked my compiler options several times, with both asm and C I get the same result.

What am I doing wrong?
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Marc56us »

Axolotl wrote: Sat Jan 06, 2024 4:40 pm Has anyone already tried this?

Code: Select all

Debug "#PB_Preference_NoBOM = " + #PB_Preference_NoBOM ; <-- debug output  #PB_Preference_NoBOM = 4 
; OpenPreferences(PreferencesFile$, #PB_Preference_NoSpace | #PB_Preference_GroupSeparator) ; <-- this works in the app
OpenPreferences(PreferencesFile$, #PB_Preference_NoBOM)
That's what I get:

Code: Select all

[16:27:51] [ERROR] OpenPreferences(): invalid value specified for parameter 'Flags'.
I have checked my compiler options several times, with both asm and C I get the same result.

What am I doing wrong?
:arrow: OpenPreferences(PreferencesFile$, #PB_Preference_NoBOM)

Added: '#PB_Preference_NoBOM' flags for CreatePreference() to create UTF-8 preference files without BOM

:idea: Tip: Even if help is not updated, completion show new flags (so type #Pb_ and see popup)

:wink:
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by DarkDragon »

Is #PB_Preference_NoBOM an integer or a string? Try to pass it's integer value (4?) instead.
bye,
Daniel
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Axolotl »

Thanks for your reply.
#PB_Preference_NoBOM seems to be an integer, I tried 4 as well with same results.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by pamen »

Compilation fails on Linux 64 bit and raspberry 64 bit,
when notification icons are used:

AddSysTrayIcon
ChangeSysTrayIcon
IsSysTrayIcon
RemoveSysTrayIcon
SysTrayIconToolTip


the linker delivers plenty of "missing function" errors for GTK.

Used ASM backend.

PureBasic 6.1 is great anyway, I'm sure all will be sorted out by 6.1 final release.
S.T.V.B.E.E.V.
User avatar
mk-soft
Always Here
Always Here
Posts: 6201
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by mk-soft »

Please no bug reports here. So please report this bug in Bug Linux.
But see if this bug is already reported. (Is reported)
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
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Quin »

It would appear the flag is only for CreatePreferences(), which makes sense. I'm not entirely sure how it would work when opening.
Fred wrote:Added: '#PB_Preference_NoBOM' flags for CreatePreference() to create UTF-8 preference files without BOM
Axolotl wrote: Sat Jan 06, 2024 4:40 pm Has anyone already tried this?

Code: Select all

Debug "#PB_Preference_NoBOM = " + #PB_Preference_NoBOM ; <-- debug output  #PB_Preference_NoBOM = 4 
; OpenPreferences(PreferencesFile$, #PB_Preference_NoSpace | #PB_Preference_GroupSeparator) ; <-- this works in the app
OpenPreferences(PreferencesFile$, #PB_Preference_NoBOM)
That's what I get:

Code: Select all

[16:27:51] [ERROR] OpenPreferences(): invalid value specified for parameter 'Flags'.
I have checked my compiler options several times, with both asm and C I get the same result.

What am I doing wrong?
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by GeoTrail »

You guys sure have been busy. Don't forget to enjoy your friends and family too. That's important. I learned that the hard way.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Axolotl »

Quin wrote: Sun Jan 07, 2024 10:52 pm It would appear the flag is only for CreatePreferences(), which makes sense. I'm not entirely sure how it would work when opening.
Hey thanks Quin!
I always interpret too much or the wrong things into the statements.
But what the heck, it still seems to work for me.
Fred wrote: Added: 'Encoding' optional parameter to OpenPreference() to handle properly UTF-8 files without BOM
Added: '#PB_Preference_NoBOM' flags for CreatePreference() to create UTF-8 preference files without BOM
BTW: I only use CreatePreferences() very rarely. Most of the time I create the prefs with an editor and use OpenPreferences() for reading and writing.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Inner »

Updated: Toolchain on Windows now use VisualStudio 2022 and new MSVCRT for faster PureBasic programs and easier external libs integration.
Okay fine I'll be that guy, reading 8 pages to see if it had been mentioned at it not being left me a little weirded out surely that is monumental upgrade.

Is there any more details other than the above on how that works?
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Fred »

Post Reply