Search found 33 matches

by tester
Fri Jan 03, 2025 8:32 pm
Forum: Announcement
Topic: Ar-S Stream Radio 2 (Release)
Replies: 12
Views: 17733

Re: Ar-S Stream Radio 2 (Release)

Bisonte wrote: Fri Jan 03, 2025 1:57 am the download is a broken zipfile...
There is a HTTP Header in front of the binary data ;)
I confirm this.

Happy New Year everyone!
by tester
Sun Aug 18, 2024 5:56 pm
Forum: Tricks 'n' Tips
Topic: ProgressBar() & PostEvent() - A Threaded Example
Replies: 6
Views: 1670

Re: ProgressBar() & PostEvent() - A Threaded Example

For Windows, we need to replace

Code: Select all

OpenFile(0, file$)
with

Code: Select all

ReadFile(0, file$)
otherwise for

Code: Select all

C:\Program Files\PureBasic\Compilers\Engine3d.dll
will be "access denied".
by tester
Sun Aug 18, 2024 4:27 pm
Forum: Tricks 'n' Tips
Topic: ProgressBar() & PostEvent() - A Threaded Example
Replies: 6
Views: 1670

Re: ProgressBar() & PostEvent() - A Threaded Example

Code: Select all

[18:26:39] Waiting for executable to start...
[18:26:39] Executable type: Windows - x64  (64bit, Unicode, Thread, Purifier)
[18:26:39] Executable started.
[18:26:47] [ERROR] Line: 80
[18:26:47] [ERROR] The specified #Gadget is not initialised.
[18:26:54] The debugged executable quit unexpectedly.
by tester
Sat Apr 13, 2024 11:49 pm
Forum: Coding Questions
Topic: Debug mode execution speed can vary on source whitespace.
Replies: 12
Views: 2633

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

[Win 10, X64, PB v6.10, C] Not confirmed: both are ~920-1040ms with debugger, and ~11ms without Debugger.
by tester
Wed Apr 19, 2023 7:25 pm
Forum: Coding Questions
Topic: lzma unpack speed, extremely slow on big Archiv
Replies: 10
Views: 1568

Re: lzma unpack speed, extremely slow on big Archiv

Code: Select all

12th Gen Intel(R) Core(TM) i5-12500
FileSize: 538 MiB, unpack time:
  PB: 23554 ms
 7zr: 19141 ms
PureBasic is 23% slower
Not such a big difference.
by tester
Mon Mar 27, 2023 5:33 pm
Forum: Tricks 'n' Tips
Topic: Min and max values of an array
Replies: 24
Views: 5448

Re: Min and max values of an array

mk-soft wrote: Mon Mar 27, 2023 5:26 pm
Lunasole wrote: Mon Mar 27, 2023 4:36 pm
mk-soft wrote: Mon Mar 27, 2023 4:12 pm Doesn't work under c-backend anyway. It is written in ASM.
Why should not? I thought C-backend also supports ASM parts (and it should)
Must be rewritten from ASM -> C-Backend ASM
We are waiting for someone who can help with this. :)
by tester
Mon Mar 27, 2023 3:55 pm
Forum: Tricks 'n' Tips
Topic: Min and max values of an array
Replies: 24
Views: 5448

Re: Min and max values of an array

Not working with C-backend PB601 - Error: 'EndModule' is missing.
by tester
Sun Sep 18, 2022 9:23 pm
Forum: Coding Questions
Topic: DeviceIoControl API call with FSCTL_GET_VOLUME_BITMAP
Replies: 10
Views: 2052

Re: DeviceIoControl API call with FSCTL_GET_VOLUME_BITMAP


A bit more extended:

EnableExplicit

#IOCTL_STORAGE_READ_CAPACITY = $2D5140

#FSCTL_GET_VOLUME_BITMAP = $0009006F

Structure STORAGE_READ_CAPACITY Align #PB_Structure_AlignC
Version.l
Size.l
BlockLength.l
NumberOfBlocks.LARGE_INTEGER
DiskLength.LARGE_INTEGER
EndStructure

Structure STARTING ...
by tester
Sun Aug 28, 2022 9:36 pm
Forum: Coding Questions
Topic: Question about packer
Replies: 7
Views: 1085

Re: Question about packer

idle wrote: Sun Aug 14, 2022 1:11 amdownload link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Great job :!: .
Please fix the corruption of the EzPack_7_OpenFileOnDemand.pb file in line 34.
by tester
Sat Jun 25, 2022 4:57 pm
Forum: Coding Questions
Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
Replies: 30
Views: 7009

Re: Unpacking .7z *with* subdirectories

StarWarsFan wrote: Sat Jun 25, 2022 11:45 am...Obviously some archives collide with the way NextPackEntry() is conducted. => on some archives it returns #false (0) here and the loop is not executed...
Can you provide a sample of such an "incorrect" archive?
by tester
Wed Nov 10, 2021 8:02 pm
Forum: Coding Questions
Topic: [Done] 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?
Replies: 7
Views: 2953

[Done] 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?

Code: Select all

Structure proto Align #PB_Structure_AlignC
  a.q
  b.l
EndStructure

Debug SizeOf(proto)

; PB 6.0 alpha 5 x86 ASM Backend & C Backend:
; [Debug] 12
;
; PB 5.73 x86:
; [Debug] 16
by tester
Mon Jul 19, 2021 7:05 pm
Forum: Coding Questions
Topic: LUA Static linking
Replies: 16
Views: 4107

Re: LUA Static linking

The standalone exe file is ~180-190 KB.
by tester
Mon Jul 19, 2021 2:18 pm
Forum: Coding Questions
Topic: LUA Static linking
Replies: 16
Views: 4107

Re: LUA Static linking

The static library linked successfully with PB 5.73 - 6 Alpha x86/x64 when compiled in VS2013 with the following settings:

Code: Select all

General -> Whole Program Optimization:NO
Librarian -> Additional Dependencies:msvcrt.lib
by tester
Mon Mar 22, 2021 10:52 pm
Forum: Tricks 'n' Tips
Topic: SetFileDate() also on folders
Replies: 4
Views: 1856

Re: SetFileDate() also on folders

Works on W10 X64/X86 only when using the following code:
Import "" ; Kernel32
TzSpecificLocalTimeToSystemTime(*lpTimeZoneInformation.TIME_ZONE_INFORMATION, *LocalTime.SYSTEMTIME, *UniversalTime.SYSTEMTIME)
; BOOL WINAPI TzSpecificLocalTimeToSystemTime(
; _In_opt_ LPTIME_ZONE_INFORMATION ...