Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory allocation Pin
leppie30-Aug-06 11:17
leppie30-Aug-06 11:17 
GeneralRe: Memory allocation Pin
mikone30-Aug-06 11:33
mikone30-Aug-06 11:33 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 11:59
pawelpus30-Aug-06 11:59 
GeneralRe: Memory allocation Pin
mikone30-Aug-06 12:28
mikone30-Aug-06 12:28 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 22:15
pawelpus30-Aug-06 22:15 
GeneralRe: Memory allocation Pin
mikone31-Aug-06 7:25
mikone31-Aug-06 7:25 
AnswerRe: Memory allocation Pin
Robert Rohde30-Aug-06 5:45
Robert Rohde30-Aug-06 5:45 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 12:01
pawelpus30-Aug-06 12:01 
I put the wrong code in the post. This is what I was thinking about:

it works:

int[] values1 = new int[1024*1024*50]
int[] values2 = new int[1024*1024*50]

it gives OutOfMemoryException:

int[] values1 = new int[1024*1024*100]

There is enough free memory to allocate even 1Gb, but the problem for .NET is that there is no continous area of the memory which size is 400Mb. This is why I can allocate two times 200Mb but I can not allocate 400 Mb once. The question is: Can it be avoided somehow?

pawelpus

AnswerRe: Memory allocation Pin
Colin Angus Mackay30-Aug-06 9:56
Colin Angus Mackay30-Aug-06 9:56 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 11:58
pawelpus30-Aug-06 11:58 
QuestionCreating dependent programs Pin
ToBrax30-Aug-06 4:53
ToBrax30-Aug-06 4:53 
AnswerRe: Creating dependent programs Pin
albCode30-Aug-06 4:56
albCode30-Aug-06 4:56 
AnswerRe: Creating dependent programs Pin
mikone30-Aug-06 4:59
mikone30-Aug-06 4:59 
QuestionCompare 2 DataTables Pin
Omkar Ghaisas30-Aug-06 4:44
Omkar Ghaisas30-Aug-06 4:44 
AnswerDon't crosspost Pin
leckey30-Aug-06 7:42
leckey30-Aug-06 7:42 
QuestionPorts.SerialPort freezes Pin
sjembek30-Aug-06 4:44
sjembek30-Aug-06 4:44 
AnswerRe: Ports.SerialPort freezes Pin
sjembek30-Aug-06 5:20
sjembek30-Aug-06 5:20 
GeneralRe: Ports.SerialPort freezes Pin
Dave Kreskowiak30-Aug-06 5:51
mveDave Kreskowiak30-Aug-06 5:51 
QuestionSearch Pattern Pin
Sabry190530-Aug-06 4:38
Sabry190530-Aug-06 4:38 
AnswerRe: Search Pattern Pin
mikone30-Aug-06 4:52
mikone30-Aug-06 4:52 
GeneralRe: Search Pattern Pin
Dave Kreskowiak30-Aug-06 5:49
mveDave Kreskowiak30-Aug-06 5:49 
AnswerRe: Search Pattern Pin
Judah Gabriel Himango30-Aug-06 5:12
sponsorJudah Gabriel Himango30-Aug-06 5:12 
AnswerRe: Search Pattern Pin
Judah Gabriel Himango30-Aug-06 7:02
sponsorJudah Gabriel Himango30-Aug-06 7:02 
GeneralRe: Search Pattern Pin
Sabry190530-Aug-06 7:44
Sabry190530-Aug-06 7:44 
QuestionSQL problem Pin
printscreen1234530-Aug-06 4:25
printscreen1234530-Aug-06 4:25 

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.