Mail Archives: djgpp/1996/12/26/20:31:48
> > >
> > > Your interrupt handler needs to be in locked memory, then it will never
> > > be swapped. This has nothing to do with the way you call the child
> > > programs. DJGPP has a library function to lock regions of memory (see
> > > the docs of `__dpmi_lock_linear_region' in the libc reference).
> > >
> >
> > Is it possible to use this method to lock the *entire* program?
> >
> > g.
> >
> >
> Yes, but there is an easier method for the entire program. Try:
> #include <crt0.h>
> ...
> int main()
> {
> _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY;
> ...
> return 0;
> }
>
>
Michael, thanks for the tip. I'll give it a shot this evening and see how
it works out. Should prove to be interesting...
g.
- Raw text -