FreeDOS and Protected Mode (Users)
I'm having a bit of a problem with Protected Mode DOS. I have developed an application using Borland Pascal 7.01 + Turbo Vision. Initially I compiled for Real Mode (but running in an XP command prompt) and I started getting a stack overflow error. So I doubled the stack size with no change except I then got a heap overflow error.
So I thought that if I compiled for a Protected Mode target - given all that extra memory that would be available - the heap overflow error should disappear. So, after placing the required PM Borland managers in the app directory (DPMI16BO.OVL and RTM.EXE) I tried again in an XP command prompt. This time the app didn't load and I received an "Unhandled exception at 0020 1A9E Err 0002".
So I thought maybe I need 'real' DOS to make this work. So I powered up FreeDOS (with EMM.EXE and HIMEM.SYS) and ran the app again - but with exactly the same result - "Unhandled exception at 0020 1A9E Err 0002". I swapped EMM.EXE and HIMEM.SYS for JEMMEX.EXE. This time launching the app crashed FreeDOS completely.
So am I wrong to believe that Protected Mode would give me more Heap space? If I'm not then my app has other 'issues', obviously!
I did a search on Google for this error and came up with a discussion of the same Error 0002 from about 6 years ago on the FreeDOS discussion group and which also mentioned BP 7. So the supplementary question is: are there issues with FreeDOS and/or BP 7 with respect to Protected Mode?
TIA
---
Paul
Melbourne, Australia
Complete thread:
- FreeDOS and Protected Mode - paulrichards, 13.09.2011, 02:18 (Users)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- FreeDOS and Protected Mode - Rugxulo, 13.09.2011, 02:37
- FreeDOS and Protected Mode - paulrichards, 13.09.2011, 02:53
- FreeDOS and Protected Mode - Rugxulo, 13.09.2011, 05:53
- FreeDOS and Protected Mode - paulrichards, 13.09.2011, 06:48
- FreeDOS and Protected Mode - Rugxulo, 13.09.2011, 05:53
- FreeDOS and Protected Mode - paulrichards, 13.09.2011, 02:53
- FreeDOS and Protected Mode - Japheth, 13.09.2011, 07:12
- FreeDOS and Protected Mode - paulrichards, 13.09.2011, 08:24
- FreeDOS and Protected Mode - Japheth, 13.09.2011, 09:05
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 06:00
- FreeDOS and Protected Mode - Japheth, 14.09.2011, 11:03
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 11:17
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 11:12
- FreeDOS and Protected Mode - Japheth, 14.09.2011, 11:03
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 06:00
- FreeDOS and Protected Mode - Japheth, 13.09.2011, 09:05
- FreeDOS and Protected Mode - marcov, 13.09.2011, 13:35
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 04:22
- FreeDOS and Protected Mode - marcov, 14.09.2011, 11:13
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 11:42
- FreeDOS and Protected Mode - marcov, 16.09.2011, 12:52
- FreeDOS and Protected Mode - paulrichards, 16.09.2011, 14:01
- FreeDOS and Protected Mode - marcov, 16.09.2011, 17:41
- FreeDOS and Protected Mode - paulrichards, 16.09.2011, 14:01
- FreeDOS and Protected Mode - marcov, 16.09.2011, 12:52
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 11:42
- FreeDOS and Protected Mode - marcov, 14.09.2011, 11:13
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 04:22
- FreeDOS and Protected Mode - paulrichards, 13.09.2011, 08:24
- BP and Protected Mode - DOS386, 13.09.2011, 07:49
- BP and Protected Mode - paulrichards, 13.09.2011, 08:27
- BP and Protected Mode - marcov, 13.09.2011, 09:29
- BP and Protected Mode - paulrichards, 13.09.2011, 08:27
- FreeDOS and Protected Mode - Laaca, 13.09.2011, 20:19
- FreeDOS and Protected Mode - paulrichards, 14.09.2011, 04:09
- FreeDOS and Protected Mode - Rugxulo, 13.09.2011, 02:37
Mix view