[comp.windows.ms.programmer] Loading large programs,

rob@pcad.UUCP (Ralph Brown) (04/06/91)

I'm working with a protected mode system (which is nameless but I like)
and attempting to build large programs, say 2+ Mbytes. This works great,
however it appears that Win3.0 won't load a program that is larger than
25% of the available virtual memory (enchanted mode only). As a test,
I set up a permanent swap file of 6M, and was able to run a given program.
Then I changed the swap file down to 2M and attempted to run the same
program. I got an insufficient memory error. This is all pretty bizzarre
considering that with 4M of RAM I wasn't even getting to the swap file
in either case.

It is possible with a larger swap file to run combinations of programs
that are larger in sum than the largest individual program that can be
started. I believe this is due to the above 25% algorithm.

Does anyone have any comments on this, or if possible a fix?

Thanks,
Ralph