Search found 213 matches

by DeanH
Thu Apr 25, 2024 4:12 am
Forum: Bugs - Windows
Topic: 6.10 and 6.11b1 LoadSound crashes
Replies: 7
Views: 302

Re: 6.10 and 6.11b1 LoadSound crashes

The sound file can be downloaded from:

https://bookmark.central.sa.edu.au/book ... /howdy.wav

My test code:

InitSound()
a=LoadSound(0,"d:\bmv10\sounds\howdy.wav")
Debug a
If a
FreeSound(0)
EndIf

6.01 returns 0. 6.10 reports a division by zero error on LoadSound.
by DeanH
Wed Apr 24, 2024 2:24 am
Forum: Bugs - Windows
Topic: 6.10 and 6.11b1 LoadSound crashes
Replies: 7
Views: 302

6.10 and 6.11b1 LoadSound crashes

I think this is similar to the problem reported for LoadImage. Yesterday, one of my users reported crashing (program suddenly shuts down) where it had not happened before. The exe is compiled with 6.10x64 LTX. The crash happened at LoadSound(1, filename$) . In PB 6.01 and before, LoadSound returns a...
by DeanH
Fri Apr 19, 2024 6:18 am
Forum: Bugs - Windows
Topic: 6.11b1 compiler reports syntax error on PeekS
Replies: 2
Views: 169

Re: 6.11b1 compiler reports syntax error on PeekS

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.
by DeanH
Fri Apr 19, 2024 3:05 am
Forum: Bugs - Windows
Topic: 6.11b1 compiler reports syntax error on PeekS
Replies: 2
Views: 169

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...
by DeanH
Fri Apr 19, 2024 1:08 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 336
Views: 42150

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...
by DeanH
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: 1733

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...
by DeanH
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: 1733

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...
by DeanH
Sun Apr 14, 2024 1:25 am
Forum: Coding Questions
Topic: Debug mode execution speed can vary on source whitespace.
Replies: 12
Views: 753

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...
by DeanH
Fri Jan 12, 2024 2:28 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 336
Views: 42150

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 ...
by DeanH
Tue Jan 09, 2024 10:58 pm
Forum: Coding Questions
Topic: Negative values passed to Chr() generate an error
Replies: 5
Views: 736

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.
by DeanH
Tue Jan 09, 2024 5:43 am
Forum: Coding Questions
Topic: Negative values passed to Chr() generate an error
Replies: 5
Views: 736

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 =...
by DeanH
Tue Jan 02, 2024 2:35 am
Forum: Feature Requests and Wishlists
Topic: Automatic restore date and time with UncompressPackFile()
Replies: 1
Views: 400

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...
by DeanH
Mon Jan 01, 2024 1:20 am
Forum: General Discussion
Topic: Windows quarantines PureBasic
Replies: 8
Views: 1402

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....
by DeanH
Fri Dec 29, 2023 2:12 am
Forum: Coding Questions
Topic: Prefilling a List
Replies: 15
Views: 1383

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...
by DeanH
Mon Dec 25, 2023 12:44 am
Forum: Coding Questions
Topic: Prefilling a List
Replies: 15
Views: 1383

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=...