Search found 125 matches

by cbruce
May 17, 2019 16:06
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 150

Re: FBComplex - complex number library - 64bit?

Thanks srvaldez! I must have been copying the 32bit version to the 64bit lib directory. I deleted everything and started over and it works good now.
by cbruce
May 17, 2019 15:20
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 150

Re: FBComplex - complex number library - 64bit?

. @srvaldez ... the lib source code is included and I built it for 32bit and tested ok ... and then I rebuilt it for 64bit, which the mandel program finds incompatible when I try to compile it for 64bit. @TouristTrap ... Thanks! but the console program I'm writing will need to run on Linux as well. ...
by cbruce
May 17, 2019 2:49
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 150

FBComplex - complex number library - 64bit?

. Has anyone used jdebord's "FBComplex: complex number library" with FB 64bit? https://www.freebasic.net/forum/viewtopic.php?f=8&t=19115 http://www.unilim.fr/pages_perso/jean.debord/tpmath/fbcomplex.zip I'm attempting to run his "mandel.bas" demo program as 64bit. I'm able to...
by cbruce
May 10, 2019 17:34
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 562

Re: Problem writing 8GB array to disk

. Just tried a bunch of other different sizes and offsets over 4GB... fwrite and fread are totally screwed for any i/o using an exact 4GB variable or greater . It looks like writing and reading files is limited to GETs and PUTs of less than 4GB at once! It's CHUNK'ing TIME !!! Thanks! Bruce
by cbruce
May 10, 2019 16:55
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 562

Re: Problem writing 8GB array to disk

@counting_pine... I was incorrect earlier about being able to GET an 8GB array.

Yes... it did return a successful read.

No... it failed... the data in the receiving array was all zeros!
by cbruce
May 10, 2019 16:51
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 562

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: 562

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: 562

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: 562

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: 562

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: 562

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: 562

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: 562

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: 562

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: 252

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!

Go to advanced search