Today I started to afraid, that it will change one day, and my numbers also changes with it.
You can rest easy with this. The Random() and RandomSeed() commands have not changed their behavior since the very early years of PureBasic, even through an entire rewrite of the code and the switch ...
Search found 4311 matches
- Tue May 13, 2025 6:08 pm
- Forum: Coding Questions
- Topic: Pseudorandom number with PB internal Random
- Replies: 21
- Views: 2580
- Sat May 03, 2025 11:35 am
- Forum: Coding Questions
- Topic: DisableDebugger: Invalid memory access
- Replies: 4
- Views: 509
Re: DisableDebugger: Invalid memory access
No it can't because you disabled the debugger which is tracking these kinds of things. That is why it shows the last line when the debugger was still on.BarryG wrote: Sat May 03, 2025 11:00 amMaybe this report can be for the actual error line to be highlighted, then.
- Sat Feb 15, 2025 3:03 pm
- Forum: General Discussion
- Topic: Every Day...
- Replies: 6
- Views: 1028
Re: Every Day...
"git branch list" vs "git branch --list"
I am safe from this because I use "-a" instead
I am safe from this because I use "-a" instead

- Wed Aug 14, 2024 4:36 pm
- Forum: Coding Questions
- Topic: [done] Struggle parsing mixed type JSON array
- Replies: 2
- Views: 1340
Re: Struggle parsing mixed type JSON array
ExamineJSONMembers() is the wrong function to use here because it is only for JSON Objects not for Arrays.
What you need is:
JSONArraySize() to find out the size of the array GetJSONElement() to get the individual elements JSONType() to find the type of the element GetJSONInteger() or ...
What you need is:
JSONArraySize() to find out the size of the array GetJSONElement() to get the individual elements JSONType() to find the type of the element GetJSONInteger() or ...
- Tue Jun 25, 2024 4:48 pm
- Forum: Linux
- Topic: Loading steamlib.so in Ubuntu 22, works well in PB IDE, but gives an error when running through the released executable
- Replies: 11
- Views: 3777
- Mon Jun 24, 2024 8:57 pm
- Forum: Linux
- Topic: Loading steamlib.so in Ubuntu 22, works well in PB IDE, but gives an error when running through the released executable
- Replies: 11
- Views: 3777
Re: Loading steamlib.so in Ubuntu 22, works well in PB IDE, but gives an error when running through the released executa
You can try adding the directory with the libraries to the LD_LIBRARY_PATH environment variable before loading the lib. This might help.
The IDE modifies this variable too but it only adds the PB compiler directory to it nothing else so I am not sure if this is what makes the difference.
The IDE modifies this variable too but it only adds the PB compiler directory to it nothing else so I am not sure if this is what makes the difference.
- Thu Jun 20, 2024 12:56 pm
- Forum: Coding Questions
- Topic: SaveJSON()
- Replies: 7
- Views: 1083
Re: SaveJSON()
The file is opened with FILE_SHARE_READ mode only so it cannot be opened for writing at the same time but it can be read.
- Fri Jun 14, 2024 11:23 pm
- Forum: Feature Requests and Wishlists
- Topic: MIT license for all published code out of the forum
- Replies: 34
- Views: 8634
Re: MIT license for all published code out of the forum
The whole point of these public forums is to help other people by answering to a question, so it's pretty obvious than if you post an answer, it can be reused in another program. That said, I can add a text in the 'Terms or Service' link of the forums like stackoverflow: https://stackoverflow.com ...
- Thu Jun 13, 2024 4:03 pm
- Forum: Coding Questions
- Topic: [PB6.11] assembler backend (x86+x64) _DateUTC() bug
- Replies: 5
- Views: 1227
Re: [PB6.11] assembler backend (x86+x64) _DateUTC() bug
There is a native function now: https://www.purebasic.com/documentation ... teutc.html
- Thu Jun 13, 2024 3:45 pm
- Forum: Feature Requests and Wishlists
- Topic: MIT license for all published code out of the forum
- Replies: 34
- Views: 8634
Re: MIT license for all published code out of the forum
If you really want to go into legal nitpicking, remove the content of everybody who did not agree to the license change on this forum by the end of the period and replace the content of their posting automatically with a link to their posting's content on the wayback archive :D
I find it ...
I find it ...
- Wed Jun 12, 2024 11:55 pm
- Forum: Feature Requests and Wishlists
- Topic: MIT license for all published code out of the forum
- Replies: 34
- Views: 8634
Re: MIT license for all published code out of the forum
This could only apply to code posted from now on. For it to apply to existing posts we would have to get approval from everybody who ever posted something which is impossible. So no matter what, you'd be left with a mix of code where this applies and where it doesn't which kind of defeats the ...
- Sat Mar 16, 2024 2:29 pm
- Forum: Coding Questions
- Topic: AlignC not colored
- Replies: 4
- Views: 875
Re: AlignC not colored
There is no keyword called "AlignC". It is a constant called #PB_Structure_AlignC.
- Thu Jan 25, 2024 11:00 pm
- Forum: Coding Questions
- Topic: IDE / Scintilla - active tab
- Replies: 9
- Views: 1402
Re: IDE / Scintilla - active tab
You can also specify the "-l" (or "/L" on Windows) commandline option to specify a line to jump to in the loaded file.
- Sun Jan 21, 2024 2:40 pm
- Forum: Feature Requests and Wishlists
- Topic: Default taskbar behavior for borderless windows
- Replies: 6
- Views: 1826
Re: Default taskbar behavior for borderless windows
There are a lot of uses for borderless windows where a taskbar button is not desired. For example the AutoComplete window in the IDE.
- Sun Jan 07, 2024 1:03 pm
- Forum: Coding Questions
- Topic: The function "WaitThread()" is freezing the calling program!
- Replies: 11
- Views: 1696
Re: The function "WaitThread()" is freezing the calling program!
"AttachProcess()" is the ideal place to put the "WaitThread()", but unfortunately, when the Thread is completed, it doesn't allow executable to continue running, but only freezing it inside the Windows Task Manager.
If you don't have the solution, then please dismiss this subject.
What you are ...
If you don't have the solution, then please dismiss this subject.
What you are ...