Re: Windows array allocation problem



Roy Lewallen wrote:
If that's true, then it's the answer to my question and the solution to my problem. If I know for sure how much will be unavailable, I can set the maximum allocation accordingly.

Note that the address space of a process can be further fragmented by
DSOs/DLLs - which can be dynamically loaded at various addresses at
run-time. Thus 'available memory' and 'available CONTIGUOUS memory'
can be two very different things...

Bottom line is that once your problem sizes start approaching 2 gbytes,
you need to start considering a change to a system supporting a 64-bit
memory model.

W.
.



Relevant Pages

  • Re: When is "volatile" used instead of "lock" ?
    ... with respect to the memory model. ... Where else is it violating the 335 memory ... can still write thread-safe code. ... IAsyncResult result = BeginBackgroundOperation(ref value1, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C#, Threads, Events, and DataGrids/DataSets
    ... Volatile has meanings both for compiler and runtime. ... Non-inlined method call makes cycle body to be considered ... When I said that I can give prove for both x86 and .Net memory models I ... > model doesn't refer to the x86 memory model at all, ...
    (microsoft.public.dotnet.general)
  • Re: C#, Threads, Events, and DataGrids/DataSets
    ... I have seen no guarantee of the ... to do with memory barriers. ... model doesn't refer to the x86 memory model at all, ...
    (microsoft.public.dotnet.general)
  • Re: C- Programming for ARM Microcontrollers
    ... long as it's just the memory allocation directives, ... a '#define far' (their excuse for not having to use Huge memory model ... Well huge model does generate less efficient code but as I remember the ...
    (comp.arch.embedded)
  • Re: Randall Hydes essay "Which assembler is the best?"
    ... >>the flat memory model. ... I'd say that there is no such thing as "flat ... use the segmented nature of the x86 memory model: It sets up the FS segment ...
    (alt.lang.asm)