Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Matty2219-Apr-10 21:09
Matty2219-Apr-10 21:09 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 19-Apr-10 21:18
professional Xmen Real 19-Apr-10 21:18 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Matty2219-Apr-10 21:25
Matty2219-Apr-10 21:25 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 19-Apr-10 21:30
professional Xmen Real 19-Apr-10 21:30 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Matty2219-Apr-10 21:44
Matty2219-Apr-10 21:44 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Dave Kreskowiak20-Apr-10 2:09
mveDave Kreskowiak20-Apr-10 2:09 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 20-Apr-10 2:35
professional Xmen Real 20-Apr-10 2:35 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Dave Kreskowiak20-Apr-10 16:18
mveDave Kreskowiak20-Apr-10 16:18 
The entire reason for asking the question is to explore OTHER possiblities since you can't possible create an array the size that you want. Why? Because the array size alone, wihtout ANY data in the strings at all, would occupy over 8 GB of memory (2.14 Billion * 4 bytes per pointer) and requires a single contiguous block of memory. Now, add on all the data in the strings themselves and this memory size just gets higher and higher. I hope your customer is using a 64-bit O/S, 'cause this isn't going to happen in 32-bit.


Xmen W.K. wrote:
either you answer the question what asked or keep your pie hole off.


Jackass...


Xmen W.K. wrote:
Nice work to vote the message down. Thats all you could do.


I didn't vote it down...

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 20-Apr-10 16:40
professional Xmen Real 20-Apr-10 16:40 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Dave Kreskowiak21-Apr-10 2:10
mveDave Kreskowiak21-Apr-10 2:10 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 21-Apr-10 2:35
professional Xmen Real 21-Apr-10 2:35 
AnswerRe: System.OutOfMemoryException when creating big array Pin
Luc Pattyn20-Apr-10 1:21
sitebuilderLuc Pattyn20-Apr-10 1:21 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 20-Apr-10 2:43
professional Xmen Real 20-Apr-10 2:43 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Luc Pattyn20-Apr-10 3:35
sitebuilderLuc Pattyn20-Apr-10 3:35 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 20-Apr-10 4:02
professional Xmen Real 20-Apr-10 4:02 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Luc Pattyn20-Apr-10 4:24
sitebuilderLuc Pattyn20-Apr-10 4:24 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 20-Apr-10 4:25
professional Xmen Real 20-Apr-10 4:25 
QuestionDifferent way to copy a file Pin
svanwass19-Apr-10 15:46
svanwass19-Apr-10 15:46 
AnswerRe: Different way to copy a file Pin
Tarakeshwar Reddy19-Apr-10 16:08
professionalTarakeshwar Reddy19-Apr-10 16:08 
AnswerRe: Different way to copy a file Pin
PIEBALDconsult19-Apr-10 17:08
mvePIEBALDconsult19-Apr-10 17:08 
AnswerRe: Different way to copy a file Pin
Vikram A Punathambekar19-Apr-10 18:39
Vikram A Punathambekar19-Apr-10 18:39 
NewsOpen source Obfuscator for .Net Pin
Oguz Bastemur19-Apr-10 13:47
Oguz Bastemur19-Apr-10 13:47 
GeneralRe: Open source Obfuscator for .Net Pin
PIEBALDconsult19-Apr-10 13:52
mvePIEBALDconsult19-Apr-10 13:52 
GeneralRe: Open source Obfuscator for .Net Pin
DaveyM6919-Apr-10 14:13
professionalDaveyM6919-Apr-10 14:13 
GeneralRe: Open source Obfuscator for .Net Pin
Oguz Bastemur19-Apr-10 14:53
Oguz Bastemur19-Apr-10 14:53 

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.