Search found 1123 matches

by NicTheQuick
Thu Mar 28, 2024 10:57 am
Forum: Coding Questions
Topic: What is the maximum length a string variable can hold?
Replies: 15
Views: 407

Re: What is the maximum length a string variable can hold?

And finally, even having a large *Memory is not of big help, because with WriteData(), the maximum buffer size is 2GB. I got the PB message [ERROR] WriteData(): The maximum buffer size is 2GB. PureBasic has obviously still barriers to 2GB... As far as I know the limit is not Purebasic but your oper...
by NicTheQuick
Wed Mar 27, 2024 8:18 pm
Forum: Coding Questions
Topic: What is the maximum length a string variable can hold?
Replies: 15
Views: 407

Re: What is the maximum length a string variable can hold?

I think unlimit means a meaningful range. So more than 64 kb and less than 1 mb with which the string management can also process well. Anything in the gigabyte range should be processed directly with memory areas as ArrayOfChar. <...> Actually your code does nothing meaningful. I mean, yes, the me...
by NicTheQuick
Wed Mar 27, 2024 5:54 pm
Forum: Coding Questions
Topic: What is the maximum length a string variable can hold?
Replies: 15
Views: 407

Re: What is the maximum length a string variable can hold?

As you can see in his signature he has 64 GiB of RAM. This does not mean it is free but at least it is there. :wink: However this only works if the program gets compiled with 64 bit compiler. I tested it on my system where I've got 47 GiB of free RAM but the program crashed before it had allocated a...
by NicTheQuick
Mon Mar 25, 2024 1:21 pm
Forum: Coding Questions
Topic: quick reading a file of 15 GByte.... how?
Replies: 22
Views: 1007

Re: quick reading a file of 15 GByte.... how?

I just tried something similar with GNU grep and needed 1 minute and 24 seconds for finding a small string in a 19 GiB file which means that it was able to search through it with ~230 MiB/s. That was on a quite fast PC (see my profile). Interestingly the CPU time needed was just 2,8 seconds for sear...
by NicTheQuick
Tue Mar 19, 2024 1:26 pm
Forum: Coding Questions
Topic: ReAllocateMemory() Id# problem
Replies: 3
Views: 164

Re: ReAllocateMemory() Id# problem

And a bit more detail: You don't get an identifier, you get a pointer from these commands. And a pointer directly points to a memory region. If you enlarge that memory it might not have enough space behind it to be enlarged in place. Instead your operating system just allocates a completely fresh me...
by NicTheQuick
Tue Mar 19, 2024 1:23 pm
Forum: Coding Questions
Topic: ReAllocateMemory() Id# problem
Replies: 3
Views: 164

Re: ReAllocateMemory() Id# problem

It's simple: You can't.
by NicTheQuick
Sat Mar 16, 2024 5:44 pm
Forum: Tricks 'n' Tips
Topic: Japanese ANIME quality up on streming
Replies: 11
Views: 1466

Re: Japanese ANIME quality up on streming

Dafuq is this?
by NicTheQuick
Thu Mar 07, 2024 4:45 pm
Forum: Coding Questions
Topic: ReDim : Array not initialized
Replies: 5
Views: 159

Re: ReDim : Array not initialized

An Unicode array of the dimensions (250000, 1949) has 487,501,950 entries and allocates 975,003,900 bytes (~930 MiB) of memory. If you make it bigger your operating system may has trouble to simply enlarge the memory when it can not find enough free memory directly behind the currently allocated spa...
by NicTheQuick
Fri Mar 01, 2024 4:40 pm
Forum: Coding Questions
Topic: HTML characters convert {Resolved]
Replies: 6
Views: 290

Re: HTML characters convert

Just use the right character directly in your code: It's the first time i have try :wink: But the problem, it's when i paste this character i don't know why the PB IDE (v5.73 and 6.0) show a little black square, not the "oe" :shock: I have choose "UTF8" in the menu "File/Fi...
by NicTheQuick
Fri Mar 01, 2024 1:39 pm
Forum: Coding Questions
Topic: HTML characters convert {Resolved]
Replies: 6
Views: 290

Re: HTML characters convert

Just use the right character directly in your code:

Code: Select all

Text$ = ReplaceString(Text$, "%C5%93", "œ") ; oe
by NicTheQuick
Fri Mar 01, 2024 11:57 am
Forum: Coding Questions
Topic: Solve 1 Equation with 2 Unknowns
Replies: 23
Views: 729

Re: Solve 1 Equation with 2 Unknowns

VB6_to_PBx wrote: Fri Mar 01, 2024 11:45 amthis is what it should calculate :
real Solution: x=129.6025714796 , y=10100
No. That's still just one of infinitely many solutions.
by NicTheQuick
Mon Feb 19, 2024 7:40 pm
Forum: Feature Requests and Wishlists
Topic: FormatNumber should respect the locale settings, and what about FormatCurrency?
Replies: 6
Views: 295

Re: FormatNumber should respect the locale settings, and what about FormatCurrency?

From my point of view it would be better to leave the current procedure as it is and have an additional procedure with the word locale inside the procedure name like FormatNumberLocale . That's a valid option. The we could also add stuff like FormatCurrencyLocale and ParseNumberLocale and similar t...
by NicTheQuick
Mon Feb 19, 2024 3:59 pm
Forum: Feature Requests and Wishlists
Topic: FormatNumber should respect the locale settings, and what about FormatCurrency?
Replies: 6
Views: 295

Re: FormatNumber should respect the locale settings, and what about FormatCurrency?

The function `FormatNumber` uses static default values for the 1000s separator and the decimal point. Instead it would make way more sense to respect the locale settings. FormatNumber does allow you to specify what to use FormatNumber(Number.d [, NbDecimals [, DecimalPoint$ [, ThousandSeparator$]]]...
by NicTheQuick
Mon Feb 19, 2024 1:00 pm
Forum: Feature Requests and Wishlists
Topic: FormatNumber should respect the locale settings, and what about FormatCurrency?
Replies: 6
Views: 295

Re: FormatNumber should respect the locale settings, and what about FormatCurrency?

Stringgadget für Währung (und andere Einheiten) I don't want to reinvent the wheel. I just want to have the possibility to use the functionality the operating system already has. Surely you can write a small wrapper for each operating system and put it in a module or just standalone, but I really w...
by NicTheQuick
Mon Feb 19, 2024 11:35 am
Forum: Feature Requests and Wishlists
Topic: FormatNumber should respect the locale settings, and what about FormatCurrency?
Replies: 6
Views: 295

FormatNumber should respect the locale settings, and what about FormatCurrency?

The function `FormatNumber` uses static default values for the 1000s separator and the decimal point. Instead it would make way more sense to respect the locale settings. Here are just a few example on how that would look like with different language settings: US English 123,456.789 French 123 456,7...