Search found 135 matches

by cbruce
May 10, 2019 16:51
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

@fxm... I believe the @grigdn article I posted above explains why I can't write an exact 4GB array to a file. An array that is a true 4GB in size will overflow the fwrite size parameter, setting it to zero and, therefore, not writing anything. When I take my array down to (4GB - 2 bytes), I still ha...
by cbruce
May 09, 2019 19:37
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

Some helpful information about the Microsoft fwrite large data issue from: https://social.msdn.microsoft.com/Forums/vstudio/en-US/7c913001-227e-439b-bf07-54369ba07994/fwrite-issues-with-large-data-write?forum=vcgeneral I think nobody ever tested fwrite with data more than 4GB as Microsoft code loops...
by cbruce
May 09, 2019 19:18
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

. @fxm... I totally agree with you. But, to quote Han Solo in Star Wars, " It's ... Not ... My ... Fault! " [SMILE] Either Windows or FreeBASIC will not PUT a 4GB(?) array DIM'd as: redim shared hits( 0 to ((2^31)-1) ) as ushort But I can PUT a 4GB(?) array DIM'd: redim shared hits( 0 to (...
by cbruce
May 09, 2019 18:27
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

@fxm... That was my original calculation also. But ((2^31)-2) works and ((2^31)-1) does not. So I just figured that my math was wrong.
by cbruce
May 09, 2019 16:23
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

.
@counting_pine... Yes... I can GET an 8GB array with no problem.

Bruce
by cbruce
May 09, 2019 16:15
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

That pegged it @counting_pine. I can write a 4GB array max: ' 4GB WORKS !!! (just nothing bigger!) redim shared hits( 0 to ((2^31)-2) ) as ushort ' I had tried with ((2^31)-1) max elements previously - but had forgotten that I needed ' to account for the fact that my elements were 2 bytes each.
by cbruce
May 09, 2019 13:36
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

. @counting_pine: Way cool function! That's what I was trying to figure out how to do next... (and a BIG thanks, because I can see that I was headed in the wrong direction!). And I can write a 2GB array... just not any larger. @fxm: TYPE... no. I was trying a UNION so that I could get at the 8GB arr...
by cbruce
May 09, 2019 4:32
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

. Tried a UNION, because then I could just write out four 2GB arrays instead of the 8GB array... union hits_union dim x8G(0 to (2^32)) as ushort dim x2G(1 to 4, 0 to (2^30)) as ushort end union redim shared hits as hits_union ... but get " error 50: Array too big in 'dim x8G(0 to (2^32)) as ush...
by cbruce
May 09, 2019 2:25
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Re: Problem writing 8GB array to disk

. Hmmm... Don't know if it's a bug, a limit, (or a feature [smile])... It looks like I can work with an 8GB array all day long... but the biggest array that I can write to disk, appears to be a 2GB array. I'm on Windows 10 and writing a binary file... so that seems like a strange limit to have on wr...
by cbruce
May 08, 2019 22:55
Forum: Tips and Tricks
Topic: Modular (Binary) Exponentiation example
Replies: 4
Views: 434

Re: Modular (Binary) Exponentiation example

integer, I don't "grok" it, but at least I can see it and can start to wrap my head around it. Thanks!
by cbruce
May 08, 2019 22:17
Forum: Tips and Tricks
Topic: Modular (Binary) Exponentiation example
Replies: 4
Views: 434

Re: Modular (Binary) Exponentiation example

dodicat, that string version is a really cool one! Thanks!
by cbruce
May 08, 2019 22:11
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 905

Problem writing 8GB array to disk

. I can write elements of the 8GB array all over the 8GB file using put #... but I can't put # the array itself... program just hangs. All of my offsets and sizes look good to me. I can't figure out the issue. The code comments have all of the details in this example... (compiles). ' ===============...
by cbruce
May 04, 2019 19:34
Forum: Tips and Tricks
Topic: Modular (Binary) Exponentiation example
Replies: 4
Views: 434

Modular (Binary) Exponentiation example

. Modular Exponentiation is an operation that is used quite frequently in areas such as cryptography. The Diffie-Hellman method is a prime (pun intended) example. I actually use the below function with the parameters shown for some unique purposes... but it has limited use in most real world program...
by cbruce
Apr 22, 2019 1:49
Forum: General
Topic: Mandelbrot and Julia Sets fractals without any drawing code?
Replies: 3
Views: 258

Mandelbrot and Julia Sets fractals without any drawing code?

Does anyone have Mandelbrot and Julia Sets fractal generation code that does NOT have any drawing code associated with it? I just want to iterate the fractals and get their equation's values at each step. But every program I find is for drawing the fractals. Each of these fractal drawing programs th...
by cbruce
Sep 30, 2018 5:00
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)
Replies: 516
Views: 60652

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated September 5, 2018)

Hi Paul, Your latest releases have played heck with my editor themes - I can go back to versions like 1.60 and the themes are fine - but with the 1.9+ versions, the colors are all messed up. Any idea what changes you made to the theme format and how I might figure out what's going on without spendin...

Go to advanced search