X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <434f63a6$0$180$cc7c7865@news.luth.se> From: Martin Str|mberg Subject: Re: Need to hook INT 21h from a DJGPP TSR Newsgroups: comp.os.msdos.djgpp References: <1128790995 DOT 160422 DOT 143560 AT g44g2000cwa DOT googlegroups DOT com> User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha)) Date: 14 Oct 2005 07:52:06 GMT Lines: 22 NNTP-Posting-Host: speedy.ludd.ltu.se X-Trace: 1129276326 news.luth.se 180 130.240.16.13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rod Pemberton wrote: > That's probably the problem. The following code shows how to work > around it for int 0x21,ax=0x4b00 to ax=0x4b05. Like I stated > before it works for PMODE/DJ w/RM and PM apps. For CWSDPMI, it > only works for RM apps, giving the "Page Fault ... in RMCB" for PM > apps. I don't know exactly what memory needs to be locked for > CWSDPMI. 1. It's a good idea to post the whole error message. 2. As you're setting _CRT0_FLAG_LOCK_MEMORY in _crt0_startup_flags, that can't happen. I. e. getting a page fault while you have all your process' memory locked. So something is wrong. (But where?) 3. Does you program work with CWSDPMR0? 4. Which version of CWSDPMI? Right, MartinS