Click here to Skip to main content
15,920,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: The 1 votes Pin
MikeMarq21-Aug-08 7:04
MikeMarq21-Aug-08 7:04 
QuestionConverting C# code to Vb.net Pin
dix20-Aug-08 3:46
dix20-Aug-08 3:46 
AnswerRe: Converting C# code to Vb.net Pin
Steven J Jowett20-Aug-08 11:48
Steven J Jowett20-Aug-08 11:48 
AnswerRe: Converting C# code to Vb.net Pin
Dave Doknjas20-Aug-08 14:29
Dave Doknjas20-Aug-08 14:29 
QuestionComputer Science 101 question Pin
cstrader23220-Aug-08 2:57
cstrader23220-Aug-08 2:57 
AnswerRe: Computer Science 101 question Pin
MikeMarq20-Aug-08 6:39
MikeMarq20-Aug-08 6:39 
GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 7:52
cstrader23220-Aug-08 7:52 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak20-Aug-08 13:41
mveDave Kreskowiak20-Aug-08 13:41 
cstrader232 wrote:
Is this perhaps a limitation of .net?


No. The limit is determined by the biggest block of available memory. Also, memory not withstanding, you can only have Int32.MaxValue number of elements in an array, on a 32-bit machine.


cstrader232 wrote:
Can I use virtual memory to increase the size of my arrays


This is already done automatically by .NET's memory manager and Windows. The limit is determined by the state of Windows when the array is allocated and, the amount of RAM installed in the machine, the maximum size of your systems page file, and the fact the, by default, there is a 2GB user mode limit per process.

On my machine, 3,000,000 Single's results in a VM size of 1.22GB - automatically. I can to somewhere north of about 3.05 million Singles in an array after a fresh boot, with about 1.5GB of RAM in it.

Keep in mind that your app does not have access to the entire 2GB. The system occupies a good chunk of that memory, so your code has to share that limit. The effective range you have is a max of about 1.2 to 1.4GB of memory for your application, depending on what's installed and running in the system.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 16:31
cstrader23220-Aug-08 16:31 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak21-Aug-08 1:28
mveDave Kreskowiak21-Aug-08 1:28 
GeneralRe: Computer Science 101 question Pin
cstrader23221-Aug-08 1:36
cstrader23221-Aug-08 1:36 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak21-Aug-08 12:13
mveDave Kreskowiak21-Aug-08 12:13 
AnswerRe: Computer Science 101 question Pin
Paul Conrad20-Aug-08 14:13
professionalPaul Conrad20-Aug-08 14:13 
GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 16:12
cstrader23220-Aug-08 16:12 
GeneralRe: Computer Science 101 question Pin
Mycroft Holmes20-Aug-08 19:25
professionalMycroft Holmes20-Aug-08 19:25 
QuestionCopy a Row from one DataGridView to another Pin
Princy_Jones19-Aug-08 22:11
Princy_Jones19-Aug-08 22:11 
QuestionWMI Connection Error Pin
nitin_ion19-Aug-08 21:34
nitin_ion19-Aug-08 21:34 
Questionisnull(value,default value) as <column name=""> not working for adapter.update()</column> Pin
honeyashu19-Aug-08 20:49
honeyashu19-Aug-08 20:49 
AnswerRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes19-Aug-08 21:27
professionalMycroft Holmes19-Aug-08 21:27 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
honeyashu19-Aug-08 23:08
honeyashu19-Aug-08 23:08 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes19-Aug-08 23:15
professionalMycroft Holmes19-Aug-08 23:15 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
honeyashu19-Aug-08 23:31
honeyashu19-Aug-08 23:31 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Jon_Boy20-Aug-08 2:07
Jon_Boy20-Aug-08 2:07 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes20-Aug-08 2:10
professionalMycroft Holmes20-Aug-08 2:10 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Jon_Boy20-Aug-08 2:28
Jon_Boy20-Aug-08 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.