From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Locking entire program in memory? Date: 8 Mar 1997 14:44:04 GMT Organization: Oxford University Lines: 20 Message-ID: <5frtvk$ngq@news.ox.ac.uk> References: <332163FC DOT 592C AT mail DOT connect DOT usq DOT edu DOT au> NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Matthew Kennedy (q9522772 AT mail DOT connect DOT usq DOT edu DOT au) wrote: : I've got a sophisticated 'real-time' program (with lots of ISR hooking : etc) and I'd like to lock the ENTIRE program (code,data - everthing) out : of virtual memory disk swaps. How can I perform this? Currently I only : lock out the code/data that is critical - but I can't lock out the other : libraries like standard I/O. Section 18.9 of the FAQ says: "You might consider disabling virtual memory to make sure your program doesn't page. To accomplish this, either set the `_CRT0_FLAG_LOCK_MEMORY' bit in the `_crt0_startup_flags' variable, or use `CWSDPR0' or `PMODE/DJ' as your DPMI host." I hope this solves the problem. -- George Foot Merton College, Oxford.