Search found 1173 matches

by User_Russian
Fri Feb 13, 2026 11:50 pm
Forum: Coding Questions
Topic: PB6.30/?B6.40a4 - #PB_Editor_CreateExecutable constant not found
Replies: 4
Views: 283

Re: PB6.30/?B6.40a4 - #PB_Editor_CreateExecutable constant not found

In the "Compiler Options" window, click on the "Constants" tab and check the "#PB_Editor_CreateExecutable".
by User_Russian
Thu Feb 12, 2026 5:03 pm
Forum: Bugs - Windows
Topic: PureBasic 6.40 alpha 1 - memory leak
Replies: 3
Views: 2255

Re: PureBasic 6.40 alpha 1 - memory leak

This memory leak also exists in alpha 4 assembly x64 backend.
by User_Russian
Thu Feb 12, 2026 4:59 pm
Forum: Bugs - Windows
Topic: [Done] PureBasic 6.40 alpha 2 - memory leak in API
Replies: 2
Views: 955

Re: PureBasic 6.40 alpha 2 - memory leak in API

This memory leak also exists in alpha 4 assembly x64 backend.
by User_Russian
Tue Feb 10, 2026 12:29 am
Forum: General Discussion
Topic: Variable Viewer, view passed pointed structure
Replies: 14
Views: 3355

Re: Variable Viewer, view passed pointed structure

Kwai chang caine wrote: Mon Feb 09, 2026 9:30 pmThere aren't a native tool for see all a big structure ?
Variable viewer does not support viewing structures by pointer.
by User_Russian
Sun Feb 08, 2026 3:47 pm
Forum: Coding Questions
Topic: A simple question about returning an array from a procedure
Replies: 5
Views: 267

Re: A simple question about returning an array from a procedure

ZX80 wrote: Sun Feb 08, 2026 3:19 pmIf you write it like this (as we are used to doing for a one-dimensional array):

Code: Select all

Procedure SomeProc(Array try(1,1))

Code: Select all

Procedure Test(Array x(4))
  x(0, 0, 2, 0) = 1234
EndProcedure

Dim a(10, 10, 10, 10)
Test(a())

Debug a(0, 0, 2, 0)
by User_Russian
Fri Feb 06, 2026 1:02 pm
Forum: Bugs - C backend
Topic: "PureBasic - Assembler Error"; PB6.30; Win11; x64; C-Compiler backend
Replies: 6
Views: 465

Re: "PureBasic - Assembler Error"; PB6.30; Win11; x64; C-Compiler backend


I think empty structs are not supported in C, I will see how I can solve this
This code compiles without errors. HeaderSection
typedef struct {} i_iwindowstruct;
static i_iwindowstruct**v_x=0;
EndHeaderSection There is an error about this code because there is no structure declaration in code ...
by User_Russian
Sun Feb 01, 2026 2:58 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 4 is ready, surprise inside !
Replies: 140
Views: 19000

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

You can use a fixed string with the API, and then you don't need to update its length. Path${#MAX_PATH}
GetModuleFileName_(GetModuleHandle_(#Null$), @Path$, #MAX_PATH)
MessageRequester(""+Len(Path$), Path$, 0) I wrote here about updating the string length https://www.purebasic.fr/english/viewtopic ...
by User_Russian
Sat Jan 31, 2026 9:15 pm
Forum: Announcement
Topic: Torrent client - pbTorrent (source code).
Replies: 58
Views: 54420

Re: Torrent client - pbTorrent (source code).

This app was developed 15 years ago for version 4.50. A lot of code changes are needed for 5.72...
by User_Russian
Wed Jan 28, 2026 6:00 pm
Forum: Bugs - Windows
Topic: [Done] PB 6.40 Alpha 1 - Issue with referenced strings which are modified
Replies: 22
Views: 3253

Re: [Done] PB 6.40 Alpha 1 - Issue with referenced strings which are modified

Fred wrote: Wed Jan 28, 2026 5:29 pm

Code: Select all

    *String+1
PB uses Unicode strings, and each character requires 2 bytes. I think it's better to do it this way.

Code: Select all

*String+SizeOf(Character)
by User_Russian
Wed Jan 28, 2026 4:30 pm
Forum: Bugs - Windows
Topic: [Done] PureBasic 6.40 alpha 2 - memory leak in API
Replies: 2
Views: 955

[Done] PureBasic 6.40 alpha 2 - memory leak in API

A bug similar to this but with fixed strings. Procedure Test()
Protected Semaphore.s{#MAX_PATH}="Semaphore"
For i=0 To 10000000
CreateSemaphore_(#Null, 0, 1, Semaphore)
Next
EndProcedure

Test()
MessageRequester("","") // Procedure Test()
static integer f_test() {
integer r=0;
unsigned short v ...
by User_Russian
Mon Jan 26, 2026 11:46 am
Forum: Bugs - C backend
Topic: [6.30 X64 C-Backend] OnErrorCall()
Replies: 8
Views: 3004

Re: [6.30 X64 C-Backend] OnErrorCall()

Little John wrote: Sun Jan 25, 2026 9:55 amWorks also without problems when using the x64 ASM-backend.
Doesn't work with C backend.
by User_Russian
Mon Jan 26, 2026 11:39 am
Forum: Feature Requests and Wishlists
Topic: It would be nice to have a binary shift
Replies: 5
Views: 2457

Re: It would be nice to have a binary shift

There are many such requests on the forum.
viewtopic.php?t=77286
viewtopic.php?t=52929

I never needed an arithmetic shift. Logical shift was always needed, but PB doesn't support it, so I wrote the code in assembler.
by User_Russian
Mon Jan 26, 2026 11:28 am
Forum: Announcement
Topic: PureBasic 6.40 alpha 4 is ready, surprise inside !
Replies: 140
Views: 19000

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

BarryG wrote: Sun Jan 25, 2026 4:43 am
User_Russian wrote: Sat Jan 24, 2026 8:15 pmFor Windows is now minimum file size executable 265 KB
Based on what? Just a MessageRequester()? An empty source file?
MessageRequester() - 267 KB.
Empty source file - 265 KB.
by User_Russian
Sat Jan 24, 2026 8:15 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 4 is ready, surprise inside !
Replies: 140
Views: 19000

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

For Windows is now minimum file size executable 265 KB...