Running https://www.pcjs.org/software/pcx86/sys/windows/win95/4.00.950/
We get an error as shown below, when a simple test program tries to enter DPMI protected mode. It reads:
MS-DOS Prompt
This program has performed an illegal operation and will be terminated. Quit all programs, and then restart your computer.
If the program consistently encounters problems, click the Start button, then select Help, Troubleshooting, and 'If you have trouble running MS-DOS programs'.
[OK] [Details>>]
The program encountered an invalid page exception.
Fault location: 0028:C0236811
Faulting component: DOSMGR(0E) + 00000ED5
Interrupts in service: None
Screenshot showing the error:

The dpmimini program is included in the disk image https://pushbx.org/ecm/test/20230813/bcdebugx.img which is unlocked on the server for use as a remote disk for PCjs. The source of the program is in https://hg.pushbx.org/ecm/dpmitest/file/845e876b561e/dpmimini.asm
If I run my debugger, lcdebugx.com dpmimini.com then on the first trace step (T command) it informs me that "DPMI entry cannot be hooked!" which is expected on MSWindows 4. However, tracing into the DPMI entrypoint (call far [bp + 00] instruction at offset 0143h) I get an address of FCB8:2F97 with the instruction bytes 63, 38 that disassemble as arpl [bx + si], di. If I try to trace this, the machine crashes in the same way as for running only dpmimini. The error message is exactly the same.
Running https://www.pcjs.org/software/pcx86/sys/windows/win95/4.00.950/
We get an error as shown below, when a simple test program tries to enter DPMI protected mode. It reads:
Screenshot showing the error:
The dpmimini program is included in the disk image https://pushbx.org/ecm/test/20230813/bcdebugx.img which is unlocked on the server for use as a remote disk for PCjs. The source of the program is in https://hg.pushbx.org/ecm/dpmitest/file/845e876b561e/dpmimini.asm
If I run my debugger,
lcdebugx.com dpmimini.comthen on the first trace step (Tcommand) it informs me that "DPMI entry cannot be hooked!" which is expected on MSWindows 4. However, tracing into the DPMI entrypoint (call far [bp + 00]instruction at offset 0143h) I get an address of FCB8:2F97 with the instruction bytes 63, 38 that disassemble asarpl [bx + si], di. If I try to trace this, the machine crashes in the same way as for running only dpmimini. The error message is exactly the same.