473,765 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

array size limitation is too small

5 New Member
Hi,

I am having difficulty with arrays because of the limitation of the size of the arrays that I can declare.
I need sizes that are very large and windows or C# does not allow me to create bigger than the following for example:

public static int[] gaPoints = new int[200000000000000 00000 + 1];

I get an error message saying that "integral size is too large".

I need to be able to declare sizes that are even much larger than the abovementioned size.

How can I circumvent this problem?

Do I have to use something other than arrays?


TIA
Roy
Mar 24 '13 #1
5 1848
anugrahbala10
13 New Member
Cant you try with using for loops?
Mar 24 '13 #2
Roy Gourgi
5 New Member
@anugrahbala10
I could but it would slow it down drastically!

Therein lies the problem!

Speed!!!! :)

Roy
Mar 24 '13 #3
Rabbit
12,516 Recognized Expert Moderator MVP
What are you doing that requires an array of that size?
Mar 25 '13 #4
Roy Gourgi
5 New Member
@Rabbit
I am doing Graph Isomorphism (G.I.P.).

Actually those sizes are quite small! :)
Mar 25 '13 #5
r035198x
13,262 MVP
C# will be a lot easier to code in if you solve most problems using object oriented programming principles.
Consider a class, called say ListAggregate that holds one List of List. When you run out of numbers in the one List you just add another List to the collection of lists and continue from there.
That way you have at least N*N values that you can store where N is the maximum number of items that a C# list can hold. If this runs out there are other ways of extending it as well.
Mar 25 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1666
by: Pat | last post by:
I am having a problem with large pdf files begin generated by fop from cocoon. There appears to be a file size limitation on the generated pdf files. When we run a small document everything works fine but when the document reaches some undetermined size it doesn't get generated. The adobe plugin doesn't startup and the browser shows the page is done. It happens under AIX and linux. We are using the latest version of cocoon and fop. Thanks.
1
2024
by: Sharon | last post by:
Hello, Is there a size limitation when using 'named pipes' on Windows OS ? If yes - how to forward a large size buffer ? Thanks
13
21376
by: HappyHippy | last post by:
Hi, I'm wondering what you think about this piece of code: #include<iostream> int main() { int size; std::cin >> size;
7
5639
by: arkobose | last post by:
hey everyone! i have this little problem. consider the following declaration: char *array = {"wilson", "string of any size", "etc", "input"}; this is a common data structure used to store strings of any lengths into an array of pointers to char type variable. my problem is: given the declaration
4
21710
by: Bilgehan.Balban | last post by:
Hi, The following code: #include <stdio.h> // const int const_asize = 10; #define define_asize = 10; int array = {1,2,3,4,5,6,7,8,9,0};
22
591
by: Vijay | last post by:
With the option strict On set..... Dim fs As FileStream = File.OpenRead(strFile) With fs Dim buffer(fs.Length) As Byte ' <--- Option Strict On disallows implicit conversions from 'Long' to 'Integer'. ' other stuff.. End With
11
11030
by: shreesh | last post by:
I want to use an array of size greater than ARRAY but am getting an array size too large error. I am using a BC 3.1 on msdos ver 5.1.2600 on XP. How can i get around this simple but irritating problem.
2
2408
by: Harry | last post by:
Good Day To all, When i am declaring a array for e.g char ....it means i am declaring array of 45 characters each of which has a maximum,minimum value limit or range...for example in VC++(compiler that i am using,it has nothing to do with C++) char's range is -128 to +127....this is the range for each char element..... My doubt is what is the upper limit for the array size(45 is the size here) and what decides it.....
1
2047
by: amiben | last post by:
Hi everyone. I have an .asp file that is included in my sites pages which holds information in a string array. The array is so large that the include file is almost 900kb in size. Some array string items hold as much as 15,000 character long strings. Now, I have been getting error "800a03e9 out of memory" in some cases and I think it might be related to the include file's string array size. As anyone encountered something similar to...
4
2552
by: leegold58 | last post by:
Hi, Is there a "way around" the size limitation for Access? I'm thinking of something like spanning a huge table accross multiple databases... Something simple and that would preserve the integrity of the DB yet let me overcome the size limitation. Is there any best practice or technique?
0
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9957
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.