Date: Fri, 31 Aug 2001 20:30:02 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Sean_Dykstra AT maxtor DOT com Message-Id: <7458-Fri31Aug2001203001+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <68C4CF842BD2D411AC1600902740B6DA02CDC54F@mcoexc02.mlm.maxtor.com> (Sean_Dykstra AT maxtor DOT com) Subject: Re: Help! - INT x22 problem. References: <68C4CF842BD2D411AC1600902740B6DA02CDC54F AT mcoexc02 DOT mlm DOT maxtor DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Dykstra, Sean" > Date: Fri, 31 Aug 2001 11:19:12 -0600 > > >One thing your code does not do is lock the stack. However, each > >interrupt handler has a local automatic variable Count which is on the > >stack. So your handlers access unlocked data. > > I "think" I lock the whole app (including the stack?) in another file with > the variable: > > int _crt0_startup_flags = _CRT_FLAG_LOCK_MEMORY; Ah, you didn't say that in your message. If you lock everything, then my comments are irrelevant. > Do I need this in every file, or just in one place? One place is enough.