Search found 30 matches
- Sat Apr 13, 2024 11:49 pm
- Forum: Coding Questions
- Topic: Debug mode execution speed can vary on source whitespace.
- Replies: 12
- Views: 745
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.
- Wed Apr 19, 2023 7:25 pm
- Forum: Coding Questions
- Topic: lzma unpack speed, extremely slow on big Archiv
- Replies: 10
- Views: 657
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
- Mon Mar 27, 2023 5:33 pm
- Forum: Tricks 'n' Tips
- Topic: Min and max values of an array
- Replies: 24
- Views: 3564
Re: Min and max values of an array
- Mon Mar 27, 2023 3:55 pm
- Forum: Tricks 'n' Tips
- Topic: Min and max values of an array
- Replies: 24
- Views: 3564
Re: Min and max values of an array
Not working with C-backend PB601 - Error: 'EndModule' is missing.
- Sun Sep 18, 2022 9:23 pm
- Forum: Coding Questions
- Topic: DeviceIoControl API call with FSCTL_GET_VOLUME_BITMAP
- Replies: 10
- Views: 805
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_VCN_INPUT_B...
- Sun Aug 28, 2022 9:36 pm
- Forum: Coding Questions
- Topic: Question about packer
- Replies: 7
- Views: 581
Re: Question about packer
Great job .idle wrote: ↑Sun Aug 14, 2022 1:11 amdownload link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Please fix the corruption of the EzPack_7_OpenFileOnDemand.pb file in line 34.
- Sat Jun 25, 2022 4:57 pm
- Forum: Coding Questions
- Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
- Replies: 30
- Views: 4545
Re: Unpacking .7z *with* subdirectories
Can you provide a sample of such an "incorrect" archive?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...
- Wed Dec 08, 2021 11:07 am
- Forum: Coding Questions
- Topic: [Done] 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?
- Replies: 7
- Views: 2448
- 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: 2448
[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
- Mon Jul 19, 2021 7:05 pm
- Forum: Coding Questions
- Topic: LUA Static linking
- Replies: 16
- Views: 3049
Re: LUA Static linking
The standalone exe file is ~180-190 KB.
- Mon Jul 19, 2021 2:18 pm
- Forum: Coding Questions
- Topic: LUA Static linking
- Replies: 16
- Views: 3049
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
- Mon Mar 22, 2021 10:52 pm
- Forum: Tricks 'n' Tips
- Topic: SetFileDate() also on folders
- Replies: 4
- Views: 1374
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 lp...
- Sun Dec 06, 2020 10:51 pm
- Forum: Tricks 'n' Tips
- Topic: cpuinfo module
- Replies: 24
- Views: 13456
Re: cpuinfo module
BarryG wrote:How do you use #PB_CPU_HYPERVISOR from the original post in this thread? I tried the following line but I get an error about the constant #PB_CPU_HYPERVISOR not found, but it's in the Enumerations?
Code: Select all
Debug CPUInfo::IsCPU(#PB_CPU_HYPERVISOR)
Code: Select all
Debug CPUInfo::IsCPU(CPUInfo::#PB_CPU_HYPERVISOR)
- Sat Sep 26, 2020 5:38 pm
- Forum: Coding Questions
- Topic: HTTPProgress() return value -5
- Replies: 1
- Views: 745
- Tue Aug 25, 2020 11:01 pm
- Forum: Feature Requests and Wishlists
- Topic: Password support for Packer lib
- Replies: 34
- Views: 14691