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 ...
Search found 3821 matches
- Sat Jan 31, 2026 6:06 pm
- Forum: Announcement
- Topic: PureBasic 6.40 alpha 3 is ready, surprise inside !
- Replies: 114
- Views: 7154
- 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 ...
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 ...
- 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
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
- Tue Jan 27, 2026 11:32 pm
- Forum: Bugs - Windows
- Topic: [Done] BUGS-640a1 Len(r$)?, #myStr$+r$ CRASH
- Replies: 8
- Views: 480
- 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?
Ex. Cstring for api, FastString for internal?
Or is the plan to have new string support all api calls with null terminated strings?
- Tue Jan 27, 2026 4:24 pm
- Forum: Coding Questions
- Topic: PB 6.40 Alpha 1 - new String management speed vs ExString
- Replies: 7
- Views: 521
Re: PB 6.40 Alpha 1 - new String management speed vs ExString
Thanks for checking this!
- 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.
Windows 11 latest.
- 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.
I did enable threaded enabled, optimizer, shared crt.
- 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.
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.
- 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 
- 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.
Same here, not big burns, but an ouch nonetheless that should be avoided.
- 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 ...
; ; 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 ...
- 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?
Any idea when this started?
Was this ok before v630 Final?
- 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 ...
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 ...
- 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?
The PeekS() may be more api compatible now than the Space() function which has a leading byte of len info?