Search found 3555 matches

by skywalk
Fri Apr 19, 2024 3:26 pm
Forum: Coding Questions
Topic: Thread Parameters?
Replies: 13
Views: 601

Re: Thread Parameters?

Yes, semaphores have been very reliable for me. Just be careful with the shared use of Map() data. This is my NOTE TO SELF: ; Current PB Design means a Map()'s current element pointer is NOT "threaded". ; A read in one thread can change the current element within another thread. ; Unlike a...
by skywalk
Fri Apr 19, 2024 2:53 pm
Forum: Coding Questions
Topic: Check if UseSQLiteDatabase is called
Replies: 10
Views: 152

Re: Check if UseSQLiteDatabase is called

Before I compile various apps, I have to configure them. So why not force the issue with settable constants? Here is example to force the use of USESQLITE CompilerIf Defined(MY_EXE, #PB_Constant) ; Do nothing. CompilerElse #MY_EXE = 0 CompilerEndIf CompilerIf #MY_EXE #SQLITE_USE_DLL = 0 ; 0=use stat...
by skywalk
Thu Apr 18, 2024 2:39 pm
Forum: Bugs - Windows
Topic: [Done] Static array index-less reference
Replies: 8
Views: 515

Re: [Done] Static array index-less reference

Ok, is this the new behavior?
exe$ = UCase(PeekS(@Process\szExeFile, -1, #PB_Ascii)) ;<-- v611b1 syntax error but used to work.
exe$ = UCase(PeekS(@Process\szExeFile[0], -1, #PB_Ascii)) ;<-- v611b1 ok.

Structure Processentry32 field:
szExeFile.c[260]
by skywalk
Wed Apr 17, 2024 7:10 pm
Forum: Announcement
Topic: PureBasic 6.11 LTS Beta 1 is ready for testing !
Replies: 11
Views: 923

Re: PureBasic 6.11 LTS Beta 1 is ready for testing !

Nice 8)
My redim bug works.
by skywalk
Sat Apr 13, 2024 7:34 pm
Forum: General Discussion
Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
Replies: 21
Views: 1495

Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04

Read the release notes. It is a necessary improvement compiling with latest C libs. You can reduce the larger files somewhat using VS2022 link.exe.
by skywalk
Sat Apr 13, 2024 2:59 pm
Forum: Coding Questions
Topic: Debug mode execution speed can vary on source whitespace.
Replies: 12
Views: 646

Re: Debug mode execution speed can vary on source whitespace.

Compile exe without debugger and report.
by skywalk
Wed Apr 10, 2024 5:11 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 330
Views: 40898

Re: PureBasic 6.10 LTS is out !

As Psychophanta said, accuracy can be subjective. Search the forum for examples of math errors when mixing integers and floats. The results depend on the order of the algebraic expression and can be very hard to find. For floating point calculations, I prefix "0.0+" to force a floating poi...
by skywalk
Wed Apr 10, 2024 1:46 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 330
Views: 40898

Re: PureBasic 6.10 LTS is out !

Not as simple as that obviously.
But, there are cases where algebraic rules vary from ideal. Or when asm and cbe compiles do not match. Or when a bug forces a change in scope.

These slow development and release of your app.
Size of the app exe is so far down the list it could be last.
by skywalk
Tue Apr 09, 2024 6:04 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 330
Views: 40898

Re: PureBasic 6.10 LTS is out !

My priority for EXE => accurate, fast, something I have not thought about yet, something else, size.
by skywalk
Mon Apr 08, 2024 10:33 pm
Forum: Bugs - C backend
Topic: [Done] 6.10 Another ReDim error on deeper structured arrays
Replies: 16
Views: 855

Re: [6.10] Another ReDim error on deeper structured arrays

Haha, I blame it on an eclipse in my brain. :oops:

The workaround works. But, I have to search for these cases within my code. Not so fun.
by skywalk
Mon Apr 08, 2024 4:41 pm
Forum: Coding Questions
Topic: Windows 10 - PB10 - Linker error
Replies: 10
Views: 565

Re: Windows 10 - PB10 - Linker error

It is not desirable to overwrite a working app.exe while in development. The current way of storing to the source code folder is acceptable. Once you have confidence in your new app.exe, you can store it to your release folder. I have not had issues after whitelisting my dev folder and creating exe'...
by skywalk
Mon Apr 08, 2024 3:44 pm
Forum: Bugs - C backend
Topic: [Done] 6.10 Another ReDim error on deeper structured arrays
Replies: 16
Views: 855

Re: [6.10] Another ReDim error on deeper structured arrays

Thanks, I tried the workaround but it depends on the position of the defining cache variable? :shock: EDIT: Actually, ASM and CBE fail if you define new_size and attempt to set it to a structured variable. If you cache the new size in a variable, it works for the time being EnableExplicit Structure ...
by skywalk
Sat Apr 06, 2024 6:46 pm
Forum: Bugs - C backend
Topic: [Done] 6.10 Another ReDim error on deeper structured arrays
Replies: 16
Views: 855

Re: [6.10] Another ReDim error on deeper structured arrays

Haha, that was why I had trouble making a smaller code snippet. I used a local variable.