May 5th, 1999, 05:56 AM
I need to declare that both data and code segments can not be swaped to disk.
How to do it in MFC based app.
Thanking in anticipation.
Adam
How to do it in MFC based app.
Thanking in anticipation.
Adam
|
Click to See Complete Forum and Search --> : How to prevent app's code from being swaped to disk May 5th, 1999, 05:56 AM I need to declare that both data and code segments can not be swaped to disk. How to do it in MFC based app. Thanking in anticipation. Adam Lavrent May 5th, 1999, 10:39 AM Make .DEF file and write entry: CODE PRELOAD Do not ......... never mind May 12th, 1999, 05:50 AM I've done what you suggested and it seems to be a good way, but had a linker warning: CODE statement not supported for the target platform; ignored. I'm using VC++ 6.0 and Win98 or NT. Unfortunately MSDN does not explain clerly which statements are supported and which are not. Adam Thanks Lothar Haensler May 12th, 1999, 05:55 AM IMHO PRELOAD only preloads code (as the name implies). NONDISCARDABLE is the "right" keyword for avoiding discarding of segments. Vali June 13th, 1999, 09:08 PM Unfortunately, CODE NONDISCARDABLE flag is ignored by windows (as you found out) for applications. However, this is not true for DLLS. Thus, the code you want to prevent from being swapped out, put that in a DLL. Then use the NONDISCARDABLE flag. Hope this helps. Vali codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |