Latest Uploads
PixeLink P ... zle Editor

rockford

PixeLink

rockford

image-21-0 ... -21-29.jpg

Jayenkai

image-15-0 ... -19-40.jpg

Jayenkai

image-15-0 ... -20-07.jpg

Jayenkai

Bumble Bee

dna

Forum Home

dim

UserMessage
Posted : Monday, 10 January 2011, 20:03 | Permalink
dna



What is the Maximum value that NN can be in the statement dim(NN)?

Also, when taking input for a dim, what is that max?

I ask because I have my program hang when i input a number larger than 100000


-----
DNA
Posted : Monday, 10 January 2011, 21:27 | Permalink | Mark Here
dna


Just FYI. I used the Rand instead of the Rnd function and still after generating the data file I got a " " space embedded in the text.
I then went to implicitly force the lower bound of 1, although the docs mention that its supposed to be done by the system, and thus far there are no " " spaces being generated by a random (pardon the pun) NULL or 0 (Zero).

-----
DNA
Posted : Tuesday, 11 January 2011, 10:09 | Permalink | Mark Here
j\'ordos


blitz gave a memory access violation error (with debug enabled) when I dimmed 1000000000, one zero less still worked fine.
Posted : Tuesday, 11 January 2011, 11:29 | Permalink | Mark Here
dna


Thanks for that information.
My original post concerned the filling of the dimensioned array.
When doing so in my program, there is a large pause.

Also, you should know that I am using B2D. In B3D there might be a difference.


-----
DNA
Posted : Tuesday, 11 January 2011, 11:36 | Permalink | Mark Here
j\'ordos


When filling the array (with rand(2) ) I get the same limit. I can fill up to 1000000 of them instantly, though I suppose this depends mainly on your cpu & ram and even your hd?

I'm using blitz3D though.
Posted : Tuesday, 11 January 2011, 14:21 | Permalink | Mark Here
dna


I have a Core 2 Duo with 1 Gig Ram, 30Gig drive w 21G free.

It may be B2d then and if so then I might have to try a different method.

-----
DNA
Posted : Tuesday, 11 January 2011, 14:53 | Permalink | Mark Here
JL235


WW Entries : 7
Technically your graphics card should play a role as Windows needs to map some of your address space to video memory (so the bigger your card the less ram you have). But this only affects 32-bit systems.

Otherwise your allowed to go up to around 3gb, regardless of your ram and CPU (thanks to virtual memory).

Try using data banks, they might allow you to store more memory. It might be that BB's internal usage or arrays is more expensive then it needs to be and so is using tonnes of memory. However an array of 1000000 ints should only be using around 3.8mb, which is pitiful.

Also AFAIK the language of Blitz2D and Blitz3D is identical (including it's implementation). It's only the libraries which differ (obviously the fact that BB3D has a 3D library).

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Homepage : http://www.StudioFortress.com
Posted : Tuesday, 11 January 2011, 15:15 | Permalink | Mark Here
dna



That is interesting as well JL235.

Something else may be going on here then.

I also never knew that B3D was not that much different from B2D. I'm missing more fun.


-----
DNA
Latest Posts
Sweets
Kuron Sat 05:13
Merchandising : Window Shopping
Kuron Sat 04:58
New Mac woes
Kuron Fri 16:12
Corner Gas : The Movie
Jayenkai Fri 16:00
RIP : Jay's Nan
blanko1324 Fri 15:35
HoverBoards FTW!
steve_ancell Fri 15:04
Facebook Rooms
Jayenkai Fri 10:37
Grrrrr Nintendo!....
rockford Fri 09:17
Willpower
rychan Fri 06:53
Waggle-a-Thon
rychan Fri 06:49
More

Latest Items
Woot : Update on hand issues
Kuron Fri 10:34
News : Newsletter #240
steve_ancell Fri 05:29
Techy : My Newest Toys
Jayenkai Sun 04:16
News : Newsletter #239
Jayenkai Sat 05:34
Showcase : Preppie!
Jayenkai Fri 13:00
Rant : I Stubbed My Toe...
steve_ancell Tue 09:47
Blog : Bedroom 2.0
Kuron Mon 18:59
Link : Message(s) from the grave
Jayenkai Tue 09:27
Blog : 20 Years Ago....
steve_ancell Mon 15:28
Life : Back Online
Kuron Tue 11:48
Showcase : Munky Blocks DX
Jayenkai Mon 07:06
Showcase : Little Nemo's Nightmare
Jayenkai Sat 04:14
News : Newsletter #234
rychan Fri 08:02
Showcase : Space Rocket Adventurers
HoboBen Thu 16:56
Blog : Health Update : August 2014
Jayenkai Sat 11:31
More

Who's Online
Kuron
Sat, at 05:42
Jayenkai
Sat, at 05:39
rychan
Sat, at 05:12
Krakatomato
Sat, at 04:34
spinal
Sat, at 00:17
blanko1324
Fri, at 22:31
steve_ancell
Fri, at 20:32
shroom_monk
Fri, at 15:38
rockford
Fri, at 14:14
dna
Fri, at 12:53
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.