Page 8 of 23

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

Posted: Mon Jan 01, 2024 6:48 pm
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.

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

Posted: Mon Jan 01, 2024 8:06 pm
by netmaestro
Much better is *lpbData

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

Posted: Tue Jan 02, 2024 7:02 pm
by minimy
Thanks a lot Fred and team and happy 2024!
PB is the beAst!!! sorry the best! ;-)

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

Posted: Fri Jan 05, 2024 9:07 am
by pamen
Agree, it should have been pointed out before and not work at all.
Fixed in my older code, now works, obviously.

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

Posted: Sat Jan 06, 2024 4:40 pm
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?

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

Posted: Sat Jan 06, 2024 5:15 pm
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:

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

Posted: Sat Jan 06, 2024 5:34 pm
by DarkDragon
Is #PB_Preference_NoBOM an integer or a string? Try to pass it's integer value (4?) instead.

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

Posted: Sat Jan 06, 2024 6:05 pm
by Axolotl
Thanks for your reply.
#PB_Preference_NoBOM seems to be an integer, I tried 4 as well with same results.

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

Posted: Sat Jan 06, 2024 6:33 pm
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.

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

Posted: Sat Jan 06, 2024 9:17 pm
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)

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

Posted: Sun Jan 07, 2024 10:52 pm
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?

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

Posted: Mon Jan 08, 2024 7:46 am
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.

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

Posted: Mon Jan 08, 2024 2:23 pm
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.

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

Posted: Wed Jan 10, 2024 2:49 am
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?

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

Posted: Wed Jan 10, 2024 9:20 am
by Fred