I thought on 32 bits machines limit was 4GB allocation more or less... It happens around 2GB to HANG
BTW: On Windows (win32 parte) you can use more than 2G RAM if you declare it to the system in the PE -Header.
I have 24 GB RAM on my machine, but in win32 this is meaningless. Can you share the code for tests ?
Andreas
YES there is a registry key to tell win32 to manage more than 4GB (large adddresses), I can't remember which key at the moment (Im focused on linux) but I used to switch that one ON
code is simple I described it before... make a stress loop on a button click
here is a kind of algo to run under GDB
for i:=1 to 1000 do begin
list.add(getmem(10*1024*1024) (* list of PChar *)
for j:=0 to (10*1024*1024)-1 do list.items [i,j]:=#$FA; (*fill to ensure true alloc *)
end;
(n.b: the above algo is a skeleton, not a snippet, u'll need to make it work in pascal... easy)
when it hangs, watch local variables with debuger, youll get where it hangs
actually around 2GB (not around 4 as expected, ... and never uses swapfile) ===> (I*10*1024*1024)+J < 2GB