home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!wtrlnd!contrast!postmaster
- From: berend@contrast.wlink.nl (Berend de Boer)
- Newsgroups: comp.lang.pascal
- Subject: Protected Mode Tips Bugfixes
- Message-ID: <727662763.AA01193@contrast.wlink.nl>
- Date: Thu, 21 Jan 1993 20:40:58
- Sender: postmaster@contrast.wlink.nl
- Lines: 32
-
- Hello Protectors,
-
- Of course, a few hours after my message has been released to the net,
- bugfixes seem necessary )-:
-
- Some minor bugfixes:
-
- * In the example about allocating memory below the 1MB, memory is
- allocated but not released. As we have only 1MB down their, this can
- become a problem ;-)
- Fix: adding the statement
- GlobalDosFree(RealModeSel);
- will clean things up
-
- * The solution to interrupts which requires parameters passed on the
- stack has a bug. The
- les di,Regs
- statement does not work of course. Replace by
- mov di,OFFSET Regs
- mov dx,SEG Regs
- mov es,dx
- This does not work when Regs is declared in the stack segment (well
- done Borland....), you encounter bug number 16, just as I did.... (see
- next message)
-
-
- Groetjes,
-
- Berend. (-:
- fido: 2:281/527.23
- email: berend@contrast.wlink.nl
-
-