That was it! Thank you.
Had to go through the source code and catch this in several places but it compiles and runs properly after.
Search found 211 matches
- Fri Apr 19, 2024 6:18 am
- Forum: Bugs - Windows
- Topic: 6.11b1 compiler reports syntax error on PeekS
- Replies: 2
- Views: 92
- Fri Apr 19, 2024 3:05 am
- Forum: Bugs - Windows
- Topic: 6.11b1 compiler reports syntax error on PeekS
- Replies: 2
- Views: 92
6.11b1 compiler reports syntax error on PeekS
The code below returns a Syntax error on line 15 A$=PeekS(@Proc32\szExeFile) . It does this with the ASM and C compilers, both 64 and 32-bit. No error with PB6.10. Checked multiple times. ;{ ISPROCESSES ;Returns the number of instances the current program or filename is in the process list Procedure...
- Fri Apr 19, 2024 1:08 am
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 330
- Views: 40920
Re: PureBasic 6.10 LTS is out !
EXE compressors also sometimes have the opposite effect on anti-virus software: they become suspect. :wink: Yes! When I tried UPX, the compressed exe's were declared the exe malicious, not just suspicious, by three different AV systems. I discovered exe's embedded in BriefLZ compressed files appear...
- Thu Apr 18, 2024 2:11 am
- Forum: General Discussion
- Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
- Replies: 21
- Views: 1506
Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
I am currently breaking these big include library files down into many small pbi files, only included when needed "C Backend" checks for unused functions and never adds them to the compiled file. So that's it! I noticed the C-compiled programs were quite a bit smaller. However, the Corete...
- Wed Apr 17, 2024 1:26 am
- Forum: General Discussion
- Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
- Replies: 21
- Views: 1506
Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
I will try add an option to link the UCRT dynamically so if you program is targeting Windows 10 or above it would be smaller. It won't remove the MSVCRT dependency but it would be a start. Terrific! Thank you very much! When I started programming in Basic, the desktop HP 9845 (in 1978) had about 8k...
- Sun Apr 14, 2024 1:25 am
- 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.
[Win 10, PB 6.10. CPU Intel 7700k @ 4.3Ghz, 8 cores] Not confirmed. Debugger on Run from the IDE, not compiled Every run returned a slightly different average time. Line 41. x64 ASM compiler, 350-410ms. x64 C compiler, 450-530ms. I changed the gap to line 141. x64 ASM compiler, 350-414ms. x64 C comp...
- Fri Jan 12, 2024 2:28 am
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 330
- Views: 40920
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
I have recompiled all 10 of my school library system's exe modules with the beta release. Windows 10, 64-bit, asm compiler. 100,000 to 150,000 lines of source code in each module. It is a complex database system using SQLite, barcodes, and images. So far, everything seems to work okay. There may be ...
- Tue Jan 09, 2024 10:58 pm
- Forum: Coding Questions
- Topic: Negative values passed to Chr() generate an error
- Replies: 5
- Views: 733
Re: Negative values passed to Chr() generate an error
I was not sure if it was classified as a bug. I am fully aware the generated error and documentation is correct. But it is a difference in behaviour and it may catch other code. I picked this up when transferring data in a file from one library system to a different one.
- Tue Jan 09, 2024 5:43 am
- Forum: Coding Questions
- Topic: Negative values passed to Chr() generate an error
- Replies: 5
- Views: 733
Negative values passed to Chr() generate an error
I have spotted a difference between 6.01 and 6.04 / 6.10 with the Chr() function. Using 6.10 beta 1 and 6.04 LTS, ASM, a negative value passed to Chr() generates an error. With 6.01 LTS no error. ;Error if run in 6.04 or 6.10, but no error in 6.01 a = -30 a$ = Chr(a) ;No error with 6.04 and 6.10 a =...
- Tue Jan 02, 2024 2:35 am
- Forum: Feature Requests and Wishlists
- Topic: Automatic restore date and time with UncompressPackFile()
- Replies: 1
- Views: 396
Automatic restore date and time with UncompressPackFile()
I would like to request UncompressPackFile() sets a file's date and time when uncompressed, or to have a flag to do that. I realize this can be done with PackEntryDate() and SetFileDate() after the file is uncompressed but it would be handy to have this done as part of the uncompress process. This h...
- Mon Jan 01, 2024 1:20 am
- Forum: General Discussion
- Topic: Windows quarantines PureBasic
- Replies: 8
- Views: 1397
Re: Windows quarantines PureBasic
I did not have this problem when installing 6.10, but ran into this same false positive for PureBasic_Compilation0.exe . Reported by Windows Defender. It first appears in my history list on Dec 29. The quarantined path was C:\Users\PC\AppData\Local\Temp\PureBasic_Compilation0.exe . I was using PB 6....
- Fri Dec 29, 2023 2:12 am
- Forum: Coding Questions
- Topic: Prefilling a List
- Replies: 15
- Views: 1371
Re: Prefilling a List
This works fine: set.s = "[1,2,3,4,5,8,9,11,15,17,19,45,65,78]" NewList myset() Procedure MakeList(List mylist(), set.s) CreateJSON(0) ParseJSON(0, set) ExtractJSONList(JSONValue(0), mylist()) FreeJSON(0) EndProcedure MakeList(myset(), set) ForEach myset() Debug myset() Next Absolutely co...
- Mon Dec 25, 2023 12:44 am
- Forum: Coding Questions
- Topic: Prefilling a List
- Replies: 15
- Views: 1371
Re: Prefilling a List
I do this old-school by brute force with a set of procedures. I use lists when a key is not required, and maps when keys are useful. Lists can be sorted as well. ;This procedure adds an integer value to a list, optionally at a specified position Procedure ListAddn(List tempb.i(), value.i , position=...
- Sun Oct 08, 2023 11:00 pm
- Forum: Announcement
- Topic: PureBasic 6.03 LTS is released !
- Replies: 184
- Views: 38126
Re: PureBasic 6.03 LTS beta 10 is ready to test !
+1 from me, too.
- Tue Aug 29, 2023 2:50 am
- Forum: Off Topic
- Topic: It's too hot for programming
- Replies: 23
- Views: 2819
Re: It's too hot for programming
If that's deg C, that's fairly warm and muggy. It has been cold where I am (~15) but spring is about to "officially" sprung this Friday and the temp has crept up to 19. Good programming temp. But we have not had anywhere near the rain we have had the last couple of Augusts. Our chook isn't...