Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
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 
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 
Luc Pattyn wrote:
That is absurd. Arrays are fine when you know the count; dynamic collections such as List when you don't.

That doesnt apply on what I want. You see you still dont get what I said. And I said well in first post.


assume I have 2 values
15
9134

15 is an ID of "ABCD"
9134 of "IJKL"


now in array I can save like this


array[15] = "ABCD";
array[9134] = "IJKL";

and then I can retrieve string by just using ID as index.

exactly like in Dictionary, but Dictionary is a bit slower than Array. I asked a simple question is there any other way to do that(except using List, Array or Dictionary).


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

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 
GeneralRe: Open source Obfuscator for .Net Pin
Not Active19-Apr-10 15:30
mentorNot Active19-Apr-10 15:30 
GeneralRe: Open source Obfuscator for .Net Pin
PIEBALDconsult19-Apr-10 17:05
mvePIEBALDconsult19-Apr-10 17:05 
QuestionProblems With BinaryFormatter Pin
Richard Blythe19-Apr-10 10:26
Richard Blythe19-Apr-10 10:26 
AnswerRe: Problems With BinaryFormatter Pin
Super Lloyd19-Apr-10 13:20
Super Lloyd19-Apr-10 13:20 
AnswerRe: Problems With BinaryFormatter Pin
Alan Balkany21-Apr-10 4:04
Alan Balkany21-Apr-10 4:04 
QuestionIntegrating an unmanaged window into a managed C# app Pin
Keith Vitali19-Apr-10 10:15
Keith Vitali19-Apr-10 10:15 
AnswerRe: Integrating an unmanaged window into a managed C# app Pin
Super Lloyd19-Apr-10 14:21
Super Lloyd19-Apr-10 14:21 

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.