Can anyone offer explanations on the following with this sample code. My machine as 3 GB memory and the /3GB switch has been set. However, I can only allocate around 0.8 GB. On a similar machine, I can allocate about 1.7 GB. However, I can never allocate above that without failure. When you run this, open taskmgr and observe the MEM allocation to see the drop off.
Code:
#COMPILE EXE #DIM ALL FUNCTION PBMAIN () AS LONG DIM N AS LONG DO N = VAL(INPUTBOX$("Array size")) REDIM x(N) AS DOUBLE MSGBOX "DOUBLE array, size " + STR$(N) + $CRLF + "MEM (MB) Predicted to use: " + STR$(08 * N / 1024 / 1000), , "MEM Test" ERASE x() LOOP UNTIL N = 00 END FUNCTION
Comment