Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: Block a method execution Pin
Hum Dum20-Apr-10 1:53
Hum Dum20-Apr-10 1:53 
GeneralRe: Block a method execution Pin
Michel Godfroid20-Apr-10 4:35
Michel Godfroid20-Apr-10 4:35 
Questionhow to display current time. Pin
sudhir behera19-Apr-10 17:59
sudhir behera19-Apr-10 17:59 
AnswerRe: how to display current time. Pin
Harvey Saayman19-Apr-10 18:03
Harvey Saayman19-Apr-10 18:03 
AnswerRe: how to display current time. Pin
Abhinav S19-Apr-10 18:10
Abhinav S19-Apr-10 18:10 
AnswerRe: how to display current time. Pin
Dr.Walt Fair, PE19-Apr-10 18:16
professionalDr.Walt Fair, PE19-Apr-10 18:16 
AnswerRe: how to display current time. Pin
Luc Pattyn20-Apr-10 1:13
sitebuilderLuc Pattyn20-Apr-10 1:13 
QuestionSystem.OutOfMemoryException when creating big array Pin
Xmen Real 19-Apr-10 17:17
professional Xmen Real 19-Apr-10 17:17 
I needed 2 instances of a complete string array and I did write like this

string[] bigArray = new string[int.MaxValue];


Now, I sure got Out of memory exception, which make sense. But I couldn't find any way to make a big array. I need it to get the value very quickly.Like I write this

int somevalue = 15632427;
string tvalue = bigArray[somevalue];


I have these types of values in thousands, I tried to iterate each item which were stored in a List but it was too slow.

The last thing left is to use Dictionary but it can't beat array. Now, I'm just thinking if any of you guys know any better way ?


TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

-----------------------------------------------
128 bit encrypted signature, crack if you can

AnswerRe: System.OutOfMemoryException when creating big array Pin
Not Active19-Apr-10 17:22
mentorNot Active19-Apr-10 17:22 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 19-Apr-10 17:27
professional Xmen Real 19-Apr-10 17:27 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Not Active19-Apr-10 18:01
mentorNot Active19-Apr-10 18:01 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 19-Apr-10 21:07
professional Xmen Real 19-Apr-10 21:07 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Matty2219-Apr-10 20:44
Matty2219-Apr-10 20:44 
AnswerRe: System.OutOfMemoryException when creating big array Pin
Dave Kreskowiak19-Apr-10 18:34
mveDave Kreskowiak19-Apr-10 18:34 
GeneralRe: System.OutOfMemoryException when creating big array Pin
Xmen Real 19-Apr-10 21:03
professional Xmen Real 19-Apr-10 21:03 
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 
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 

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.