That could be where the problem lies.
Some functions of the API are not thread-safe...
Search found 5210 matches
- Sun Oct 12, 2025 1:48 pm
- Forum: Coding Questions
- Topic: DesktopWidth() crashes my app
- Replies: 10
- Views: 270
- Sun Oct 12, 2025 10:07 am
- Forum: Coding Questions
- Topic: Randomly select a declared Constant (string/number type) ?
- Replies: 2
- Views: 61
Re: Randomly select a declared Constant (string/number type) ?
I thing is better to use an array ...
- Sun Oct 12, 2025 10:02 am
- Forum: Coding Questions
- Topic: DesktopWidth() crashes my app
- Replies: 10
- Views: 270
Re: DesktopWidth() crashes my app
Build this in your code for a diagnosis ...
;-TOP by mk-soft
;
; Memory Debugging v0.5
CompilerIf #PB_Compiler_Debugger
#MemoryStop = 1
Global NewMap MemID()
Procedure MyAllocateMemory(Size, Flags, Proc.s)
Protected *mem
*mem = AllocateMemory(Size, Flags)
If *mem
MemID(Hex(*mem ...
;-TOP by mk-soft
;
; Memory Debugging v0.5
CompilerIf #PB_Compiler_Debugger
#MemoryStop = 1
Global NewMap MemID()
Procedure MyAllocateMemory(Size, Flags, Proc.s)
Protected *mem
*mem = AllocateMemory(Size, Flags)
If *mem
MemID(Hex(*mem ...
- Sun Oct 12, 2025 9:00 am
- Forum: Coding Questions
- Topic: DesktopWidth() crashes my app
- Replies: 10
- Views: 270
Re: DesktopWidth() crashes my app
What happens before the function is called. Sometimes a memory pointer problem (stack) can occur in advance,
which then leads to a crash when calling an API.
Here is something to test the PB function.
;-TOP
Global DesktopWidth, DesktopHeight, cTest
Procedure GetDesktopSize()
cnt ...
which then leads to a crash when calling an API.
Here is something to test the PB function.
;-TOP
Global DesktopWidth, DesktopHeight, cTest
Procedure GetDesktopSize()
cnt ...
- Sun Oct 12, 2025 8:39 am
- Forum: Coding Questions
- Topic: Code from PureArea
- Replies: 8
- Views: 218
Re: Code from PureArea
Some codes on the PureArea are also getting old and need to be revised a lot.
Many already have alternative codes here in the forum.
Many already have alternative codes here in the forum.
- Sat Oct 11, 2025 10:54 pm
- Forum: Raspberry PI
- Topic: PB 6 B1 Raspberry Pi linker error
- Replies: 7
- Views: 3353
Re: PB 6 B1 Raspberry Pi linker error
It's best to use my installation instructions. The INSTALL description from PB is currently incomplete.. - > https://www.purebasic.fr/english/viewtopic.php?t=74875
Libwebkit2gtk-4.0-dev and libqt5webkit5-dev are no longer available in Debian 13.
Work still needs to be done on PB v6.30 Beta to get ...
Libwebkit2gtk-4.0-dev and libqt5webkit5-dev are no longer available in Debian 13.
Work still needs to be done on PB v6.30 Beta to get ...
- Sat Oct 11, 2025 10:35 pm
- Forum: Coding Questions
- Topic: For loops: Step 1 is not mandatory, but Step -1 is
- Replies: 10
- Views: 350
Re: For loops: Step 1 is not mandatory, but Step -1 is
I don't know why that's a problem. Or I'm too old.
For me, this is completely normal with "Step x" and nothing needs to be changed.
I rather see a problem with automatic negative step, if there are also conditions where you should not go through the loop.
For me, this is completely normal with "Step x" and nothing needs to be changed.
I rather see a problem with automatic negative step, if there are also conditions where you should not go through the loop.
- Sat Oct 11, 2025 12:50 pm
- Forum: Bugs - Linux
- Topic: PB v6.30 Raspberry Trixie (Dedian 13) and WebGadget
- Replies: 0
- Views: 40
PB v6.30 Raspberry Trixie (Dedian 13) and WebGadget
WebGadget and WebViewGadget not work on Debian 13 because library libwebkit2gtk-4.1
We will now need two versions for Linux Arm like Linux Ubuntu.
One for Debian 12 and one for Debian 13
Or maybe not, since Debian 12 already comes with the libwebkit2gtk-4.1 library.
See MyWebViewGadget
We will now need two versions for Linux Arm like Linux Ubuntu.
One for Debian 12 and one for Debian 13
Or maybe not, since Debian 12 already comes with the libwebkit2gtk-4.1 library.
See MyWebViewGadget
- Sat Oct 11, 2025 10:30 am
- Forum: Coding Questions
- Topic: RunProgram() Question
- Replies: 7
- Views: 190
Re: RunProgram() Question
Pipes ...
- Sat Oct 11, 2025 10:27 am
- Forum: General Discussion
- Topic: Looking for Suggestions
- Replies: 7
- Views: 279
Re: Looking for Suggestions
Question:
- Local or Internet locations.
- How should the data be transmitted
- Why transferred line by line and not in one block (depending on size)
- Safety
- Local or Internet locations.
- How should the data be transmitted
- Why transferred line by line and not in one block (depending on size)
- Safety
- Wed Oct 08, 2025 11:35 pm
- Forum: Bugs - 3D Engine
- Topic: [Done] PB 6.30 b1 x86 : DrawingBuffer() with TextureOutput
- Replies: 9
- Views: 1406
Re: PB 6.30 b1 x86 : DrawingBuffer() with TextureOutput
Works now with PB v6.30 Beta 3 but not with Beta 2 or PB v6.21. Is fixed ...
- Wed Oct 08, 2025 5:24 pm
- Forum: Raspberry PI
- Topic: PBv6.30b3 RPi Trixie - WebGadet Linker error
- Replies: 1
- Views: 581
Re: PBv6.30b3 RPi Trixie - WebGadet Linker error
We will now need two versions for Linux Arm as with Linux Ubuntu.
One for Debian 12 and one for Debian 13
Maybe move to bug report ...
One for Debian 12 and one for Debian 13
Maybe move to bug report ...
- Wed Oct 08, 2025 5:08 pm
- Forum: Bugs - Linux
- Topic: PB 6.30b3 TextGadget horizontal text positioning error
- Replies: 2
- Views: 539
Re: PB 6.30b3 TextGadget horizontal text positioning error
Alignment y looks good, but doesn't fit for AllOS
Small fix for Beta 3 ;)
; TOP Fix
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
ImportC ""
gtk_entry_set_alignment(*entry, xalign.f)
gtk_label_set_xalign(*label, xalign.f)
gtk_label_set_yalign(*label, yalign.f)
gtk_misc_set_alignment(*label ...
Small fix for Beta 3 ;)
; TOP Fix
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
ImportC ""
gtk_entry_set_alignment(*entry, xalign.f)
gtk_label_set_xalign(*label, xalign.f)
gtk_label_set_yalign(*label, yalign.f)
gtk_misc_set_alignment(*label ...
- Tue Oct 07, 2025 7:33 pm
- Forum: Bugs - Windows
- Topic: PB 6.30 b3 x64 - Debugger error.
- Replies: 5
- Views: 656
Re: PB 6.30 b3 x64 - Debugger error.
The debugger still runs in the background.
Code: Select all
DisableDebugger
; do any without debugger
EnableDebugger
- Tue Sep 30, 2025 11:32 pm
- Forum: Coding Questions
- Topic: Help custom gadget
- Replies: 7
- Views: 615
Re: Help custom gadget
I found something else of myself ...
Without modules or OOP
;- CanvasButtonGadget by mk-soft, v1.05, 08.12.2023
Procedure DrawCanvasButton(Gadget, Image, BackColor, Offset = 0)
Protected dx, dy, Image2
dx = DesktopScaledX(GadgetWidth(Gadget))
dy = DesktopScaledY(GadgetHeight(Gadget))
If ...
Without modules or OOP
;- CanvasButtonGadget by mk-soft, v1.05, 08.12.2023
Procedure DrawCanvasButton(Gadget, Image, BackColor, Offset = 0)
Protected dx, dy, Image2
dx = DesktopScaledX(GadgetWidth(Gadget))
dy = DesktopScaledY(GadgetHeight(Gadget))
If ...