Search found 3821 matches

by skywalk
Sat Jan 31, 2026 6:06 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 3 is ready, surprise inside !
Replies: 114
Views: 7154

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Well, this is called at different times from different sources, basically the app path and subfolders are defined in some constants:
#MY_server$ = "C:\"
#MY_app_path$ = "mypath\"
etc.
Filename = #MY_server$ + #MY_app_path$ + "some-new-file-to-load.extension"
I will make a snippet, but this is basic ...
by skywalk
Sat Jan 31, 2026 5:19 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 3 is ready, surprise inside !
Replies: 114
Views: 7154

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Thanks!
I still have heinous crash for this line in a 30k loc app.
wmi\mp$ = UCase(mpFileNamePath$)
I will need time to shrink snippet.
Compiler crash:
[11:13:12] Waiting for executable to start...
[11:13:12] Executable type: Windows - x64 (64bit, Unicode, Thread)
[11:13:12] Executable started ...
by skywalk
Wed Jan 28, 2026 6:07 pm
Forum: Bugs - Windows
Topic: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH
Replies: 8
Views: 480

Re: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH

Ok, a2 works for this simple code.

I have errors still in the 40k LOC app.
I will try to make snippets in a few days.

Complex structure fails on this line with IMA and repeats in a loop...
wmi\mp$ = UCase(myFilePath$) ;<-- CRASH here
by skywalk
Tue Jan 27, 2026 4:32 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 3 is ready, surprise inside !
Replies: 114
Views: 7154

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Fred - did you consider making another string type?
Ex. Cstring for api, FastString for internal?

Or is the plan to have new string support all api calls with null terminated strings?
by skywalk
Tue Jan 27, 2026 4:12 pm
Forum: Bugs - Windows
Topic: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH
Replies: 8
Views: 480

Re: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH

I can check some other errors today.
Windows 11 latest.
by skywalk
Mon Jan 26, 2026 12:56 pm
Forum: Bugs - Windows
Topic: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH
Replies: 8
Views: 480

Re: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH

No, I turned purifier off from your notes on the alpha release.
I did enable threaded enabled, optimizer, shared crt.
by skywalk
Sun Jan 25, 2026 8:08 pm
Forum: Coding Questions
Topic: Long bug when negative bit is set
Replies: 11
Views: 521

Re: Long bug when negative bit is set

Are the PB release unit tests published?
Like, nested parenthesis booleans, float and integer math.
Threaded variable destruction.
Race condition foot fall.
Memory leak checkers.
I know SQLite has some hidden and some published.
by skywalk
Sun Jan 25, 2026 5:28 pm
Forum: Feature Requests and Wishlists
Topic: Wishlist for PB 7.0 :)
Replies: 38
Views: 2216

Re: Wishlist for PB 7.0 :)

We're getting fast strings BEFORE v7.0 :shock:
by skywalk
Sun Jan 25, 2026 3:15 pm
Forum: Coding Questions
Topic: Long bug when negative bit is set
Replies: 11
Views: 521

Re: Long bug when negative bit is set

Yes, that's why I suggested unit tests or assert myimportantmath == 42;.
Same here, not big burns, but an ouch nonetheless that should be avoided.
by skywalk
Sat Jan 24, 2026 8:08 pm
Forum: Coding Questions
Topic: Long bug when negative bit is set
Replies: 11
Views: 521

Re: Long bug when negative bit is set

Thanks, I'll keep looking but turns out I only had to use byte swapping for word data coming from an instrument.
; ; Type, Bytes, Min, Max, C Type
w.w[0] ; Word, 2, -32768, 32767, short

Like you, I prefer to rely on basic compiler operation to be confirmed by Purebasic unit testing prior to beta ...
by skywalk
Sat Jan 24, 2026 6:57 pm
Forum: Coding Questions
Topic: Long bug when negative bit is set
Replies: 11
Views: 521

Re: Long bug when negative bit is set

Ouch!
Any idea when this started?
Was this ok before v630 Final?
by skywalk
Sat Jan 24, 2026 6:51 pm
Forum: Bugs - Windows
Topic: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH
Replies: 8
Views: 480

[Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH

Ok, lots of errors in big apps.
Structures with string arrays seem corrupt.
Cannot post snippet until this simple code runs without errors.
EnableExplicit
#VER$ = "26.01.24" ;-! -SET_VERSION
#SEMI$ = Chr(59): #SEMI = 59 ; ";"
#RPAREN$ = Chr(41): #RPAREN = 41 ; ")"
Global.s winTitle$ = "Version ...
by skywalk
Sat Jan 24, 2026 4:46 am
Forum: Announcement
Topic: PureBasic 6.40 alpha 3 is ready, surprise inside !
Replies: 114
Views: 7154

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

I think Fred's referring to the old way to split a string by replacing the token or delimiter with a \0.
The PeekS() may be more api compatible now than the Space() function which has a leading byte of len info?