Click here to Skip to main content
15,887,335 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionCompact Framework SqlClient ? Pin
Vertyg015-Jun-07 2:46
Vertyg015-Jun-07 2:46 
AnswerRe: Compact Framework SqlClient ? Pin
Vasudevan Deepak Kumar15-Jun-07 2:51
Vasudevan Deepak Kumar15-Jun-07 2:51 
QuestionMarshaling from Managed code to Unmanagedcode (SAPI 5.1) Pin
royk12315-Jun-07 2:05
royk12315-Jun-07 2:05 
QuestionRemoting - client-activation problem Pin
Phil J Pearson15-Jun-07 0:43
Phil J Pearson15-Jun-07 0:43 
QuestionMonitor Network Traffic Pin
Chris Gao14-Jun-07 19:42
Chris Gao14-Jun-07 19:42 
AnswerRe: Monitor Network Traffic Pin
Manas Bhardwaj15-Jun-07 1:03
professionalManas Bhardwaj15-Jun-07 1:03 
AnswerRe: Monitor Network Traffic Pin
Vasudevan Deepak Kumar15-Jun-07 2:54
Vasudevan Deepak Kumar15-Jun-07 2:54 
QuestionMemory allocation limit Pin
PIEBALDconsult14-Jun-07 15:34
mvePIEBALDconsult14-Jun-07 15:34 
Is there a memory allocation limit in .net?

As I recall, in Turbo Pascal no individual allocated block of memory can exceed 64K.
I still see that when I use C (and Borland's compiler).
But it seems .net doesn't have that limit, I've created arrays larger than that and they seem to work fine, until I run out of memory:

byte[] x = new byte [ 0x597FEFCCUL ] ; // Succeeds

but

byte[] x = new byte [ 0x597FEFCDUL ] ; // Throws System.OutOfMemoryException

byte[] x = new byte [ 0x7FFFFFFFUL ] ; // Throws System.OutOfMemoryException

and

byte[] x = new byte [ 0x80000000UL ] ; // Throws "Arithmetic operation resulted in an overflow."


So it appears it's limited to available memory, but no more than 2GB?
Is this documented anywhere?

Don't get me wrong, I'm not complaining, just curious.
AnswerRe: Memory allocation limit Pin
Sathesh Sakthivel14-Jun-07 15:46
Sathesh Sakthivel14-Jun-07 15:46 
GeneralRe: Memory allocation limit Pin
PIEBALDconsult14-Jun-07 16:08
mvePIEBALDconsult14-Jun-07 16:08 
GeneralRe: Memory allocation limit Pin
Dave Kreskowiak14-Jun-07 17:09
mveDave Kreskowiak14-Jun-07 17:09 
GeneralRe: Memory allocation limit Pin
PIEBALDconsult14-Jun-07 17:48
mvePIEBALDconsult14-Jun-07 17:48 
GeneralRe: Memory allocation limit Pin
Dave Kreskowiak15-Jun-07 4:41
mveDave Kreskowiak15-Jun-07 4:41 
QuestionRegular expression not matching as expected Pin
tgrt14-Jun-07 4:19
tgrt14-Jun-07 4:19 
AnswerRe: Regular expression not matching as expected Pin
PIEBALDconsult14-Jun-07 16:59
mvePIEBALDconsult14-Jun-07 16:59 
GeneralRe: Regular expression not matching as expected Pin
tgrt15-Jun-07 3:40
tgrt15-Jun-07 3:40 
GeneralRe: Regular expression not matching as expected Pin
PIEBALDconsult15-Jun-07 13:49
mvePIEBALDconsult15-Jun-07 13:49 
GeneralRe: Regular expression not matching as expected Pin
tgrt15-Jun-07 16:48
tgrt15-Jun-07 16:48 
GeneralRe: Regular expression not matching as expected Pin
PIEBALDconsult15-Jun-07 19:07
mvePIEBALDconsult15-Jun-07 19:07 
GeneralRe: Regular expression not matching as expected Pin
tgrt16-Jun-07 4:16
tgrt16-Jun-07 4:16 
GeneralRe: Regular expression not matching as expected [modified] Pin
PIEBALDconsult16-Jun-07 5:43
mvePIEBALDconsult16-Jun-07 5:43 
GeneralRe: Regular expression not matching as expected [modified] Pin
PIEBALDconsult16-Jun-07 7:47
mvePIEBALDconsult16-Jun-07 7:47 
GeneralRe: Regular expression not matching as expected Pin
tgrt16-Jun-07 13:20
tgrt16-Jun-07 13:20 
GeneralRe: Regular expression not matching as expected Pin
PIEBALDconsult16-Jun-07 17:20
mvePIEBALDconsult16-Jun-07 17:20 
GeneralRe: Regular expression not matching as expected Pin
tgrt17-Jun-07 5:05
tgrt17-Jun-07 5:05 

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.