Click here to Skip to main content
15,923,557 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Rajesh R Subramanian20-Sep-19 7:22
professionalRajesh R Subramanian20-Sep-19 7:22 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
TheGreatAndPowerfulOz20-Sep-19 7:34
TheGreatAndPowerfulOz20-Sep-19 7:34 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Rajesh R Subramanian20-Sep-19 8:28
professionalRajesh R Subramanian20-Sep-19 8:28 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
johannesnestler19-Sep-19 2:41
johannesnestler19-Sep-19 2:41 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch19-Sep-19 3:02
mvahoney the codewitch19-Sep-19 3:02 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
obermd19-Sep-19 3:50
obermd19-Sep-19 3:50 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch19-Sep-19 3:51
mvahoney the codewitch19-Sep-19 3:51 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
OriginalGriff18-Sep-19 5:32
mveOriginalGriff18-Sep-19 5:32 
What's the problem? Just do exactly that:
C#
int[] foo = new int[1000000];
And it'll be allocated for you from the LOH.
Heck, you can do this if you want to:
int[] foo = new int[500000000];

Provided the max index fits in 31 bits (and the whole item is less than 2GB) .NET will let you have it if it can.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 5:38
mvahoney the codewitch18-Sep-19 5:38 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Rajesh R Subramanian18-Sep-19 17:40
professionalRajesh R Subramanian18-Sep-19 17:40 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 19:33
mvahoney the codewitch18-Sep-19 19:33 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Rajesh R Subramanian18-Sep-19 20:15
professionalRajesh R Subramanian18-Sep-19 20:15 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 21:26
mvahoney the codewitch18-Sep-19 21:26 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
CPallini18-Sep-19 6:23
mveCPallini18-Sep-19 6:23 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 6:27
mvahoney the codewitch18-Sep-19 6:27 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Richard Deeming18-Sep-19 7:38
mveRichard Deeming18-Sep-19 7:38 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
#realJSOP18-Sep-19 7:59
professional#realJSOP18-Sep-19 7:59 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Richard Deeming18-Sep-19 8:02
mveRichard Deeming18-Sep-19 8:02 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 9:17
mvahoney the codewitch18-Sep-19 9:17 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
RedDk18-Sep-19 14:26
RedDk18-Sep-19 14:26 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 14:32
mvahoney the codewitch18-Sep-19 14:32 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Chris Maunder19-Sep-19 6:33
cofounderChris Maunder19-Sep-19 6:33 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch19-Sep-19 6:34
mvahoney the codewitch19-Sep-19 6:34 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Chris Maunder19-Sep-19 6:37
cofounderChris Maunder19-Sep-19 6:37 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch19-Sep-19 6:40
mvahoney the codewitch19-Sep-19 6:40 

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.