Search found 8 matches
- Sun May 19, 2024 3:24 pm
- Forum: Coding Questions
- Topic: [Done] Problem with lenght size and PeekS
- Replies: 13
- Views: 3003
Re: Problem with lenght size and PeekS
I don't know why it tries to load such large files in a single string variable.
That makes no sense to me. It is always better if it is a text file to put it in a LinkedList. This makes it much easier to search through the individual lines and save them again after changing the line data.
Hi. i ...
- Sat May 18, 2024 7:39 pm
- Forum: Coding Questions
- Topic: [Done] Problem with lenght size and PeekS
- Replies: 13
- Views: 3003
Re: Problem with lenght size and PeekS
Can you split the respective line in two lines:At which line the error now occurs?Code: Select all
Define TempString.s = PeekS(*MemoryID, Length, #PB_UTF8|#PB_ByteLength) <-- here Debug TempString
- Sat May 18, 2024 7:24 pm
- Forum: Coding Questions
- Topic: [Done] Problem with lenght size and PeekS
- Replies: 13
- Views: 3003
Re: Problem with lenght size and PeekS
PeekS() expects a length in characters (and a character can be one byte (ASCII), two bytes (UNICODE) or multiple bytes (UTF8)).
If you want to pass the length in bytes, you have to use the flag #PB_ByteLength:
PeekS(*Buffer, LengthInBytes, #PB_UTF8|#PB_ByteLength)
I'm doing something wrong ...
- Sat May 18, 2024 5:50 pm
- Forum: Coding Questions
- Topic: [Done] Problem with lenght size and PeekS
- Replies: 13
- Views: 3003
[Done] Problem with lenght size and PeekS
Hi, i'm encountering a strange problem with a specific lenght and PeekS command.
I'm tring to chunked read a file (a Mozilla Thunderbird container file of ~330Mbytes) but when the variable "Length" value is exactly 13488096 i get this error:
[18:30:39] [ERROR] testmemory.pb (Line: 54)
[18:30:39 ...
I'm tring to chunked read a file (a Mozilla Thunderbird container file of ~330Mbytes) but when the variable "Length" value is exactly 13488096 i get this error:
[18:30:39] [ERROR] testmemory.pb (Line: 54)
[18:30:39 ...
- Fri Jun 02, 2023 3:37 pm
- Forum: Coding Questions
- Topic: Graphical problem with mdichild
- Replies: 2
- Views: 452
Re: Graphical problem with mdichild
Thank you!
Works perfectly now
Works perfectly now
- Fri Jun 02, 2023 2:37 pm
- Forum: Coding Questions
- Topic: Graphical problem with mdichild
- Replies: 2
- Views: 452
Graphical problem with mdichild
Hi, i've noticed with Purebasic 5.73 x86, 6.01 x86-x64 and 6.02 x86-x64 on Win10 and Win2012R2 that when a StringGadget with password is placed on a Mdi windows and you press the CAPSLOCK the tooltip remain marked on the window, hiding what is under it, like the first image.
On a mdi child of a ...
On a mdi child of a ...
- Thu May 09, 2013 1:10 pm
- Forum: Coding Questions
- Topic: Actual desktop
- Replies: 4
- Views: 701
Re: Actual desktop
Thanks charvista.
Thanks!! ts-soft, you make it sound easy with your procedure..
I was ending up with this, but your is absolutely better:
Procedure Update()
ClearGadgetItems(#ListIcon_0)
Dim MultiArray.i(ExamineDesktops(),7)
For i=0 To ExamineDesktops()-1
MultiArray(i,1) = i
MultiArray ...
Thanks!! ts-soft, you make it sound easy with your procedure..
I was ending up with this, but your is absolutely better:
Procedure Update()
ClearGadgetItems(#ListIcon_0)
Dim MultiArray.i(ExamineDesktops(),7)
For i=0 To ExamineDesktops()-1
MultiArray(i,1) = i
MultiArray ...
- Sun May 05, 2013 10:31 pm
- Forum: Coding Questions
- Topic: Actual desktop
- Replies: 4
- Views: 701
Actual desktop
Hi there, i'm new and i was evaluating PB using demo version, so no API.
I'm testing with this situation on a VM:
display1 (main): 1024x768 (DesktopX=0)
display2 (@left): 800x600 (DesktopX=-800)
display3 (@right): 1280x1024 (DesktopX=1024)
maybe in future i can add more display @left or @right
I ...
I'm testing with this situation on a VM:
display1 (main): 1024x768 (DesktopX=0)
display2 (@left): 800x600 (DesktopX=-800)
display3 (@right): 1280x1024 (DesktopX=1024)
maybe in future i can add more display @left or @right
I ...