
Limit memory of a VC6 application?
Scott,
If you are developing under Windows NT or 2000 or XP you can create a
special boot configuration to limit how much memory the system can see.
Turn off the "readonly" attribute of C:\boot.ini and edit it. It will look
something like this...
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT2
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT2="Microsoft Windows 2000
Professional" /fastdetect
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect
This system is configured to dual-boot between 2000 and XP. To limit the
2000 boot to 512 MB of RAM I would copy and paste the 2000 line and add the
/MAXMEM qualifier to the new copy. Also, your should change the description
string so you will know which boot is the memory limited one when you
reboot.
The result for this example will look like this...
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT2
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT2="Microsoft Windows 2000
Professional" /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINNT2="Microsoft Windows 2000 Low
Memory" /MAXMEM=512
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect
Dave Smith
Quote:
> Is it possible to limit the amount of memory that can be used by a VC 6
> application?
> I am asking this because we have an Microsoft Access 95 application and
> Access 95 does not run on workstations with 1 GB of RAM or more.
> I was wondering if we created a stub VC6 application that launched Access
95
> in the VC6 application shell that this could limit it to 512 MB RAM or
> something like that and run the Access 95 application within that shell.
> If anyone knows if this is possible or has any other ideas, it would be
> greatly appreciated.
> Thanks in advance.
> Scott