Date: Thu, 26 Dec 1996 20:44:45 -0500 Message-Id: <199612270144.UAA23970@delorie.com> From: DJ Delorie To: geneb AT web DOT wa DOT net CC: djgpp AT delorie DOT com In-reply-to: (message from Gene Buckle on Thu, 26 Dec 1996 17:13:01 -0800 (PST)) Subject: Re: Need "fancy" trick... > > Yes, but there is an easier method for the entire program. Try: > > #include > > ... > > int main() > > { > > _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY; > > Michael, thanks for the tip. I'll give it a shot this evening and see how > it works out. Should prove to be interesting... Especially since you have to set it *before* the program starts, like this: #include extern int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY; int main() { } By the time main() gets called, it's too late - your program has already started.