Mail Archives: djgpp/1996/04/18/14:51:06
> I compile a Clipper5.2d program and link it with BLINKER3.1, I use a
> SWPRUNCMD(...) BLINKER routine to run a DJGPP compiled and linked program.
> Under DOS, there is no conflit between the BLINKER DPMI and CWSDPMI, but in a
I would guess that BLINKER is a 16-bit DPMI app. When the stub sees this
holdover from 286 land, it invokes CWSDPMI, which tries to get memory and
swap modes independently (and in this case succeeds).
> DOS window under WINDOWS3.1 a problem occurs and I get the CWSDPMI error
> message "Load error : can't switch mode.".
There is no way to bypass the Win 3.1 API and get to protected mode, so if
you start with a 16-bit DPMI app, you can't run any nested 32-bit apps at
all. This is a documented DPMI 0.9 restriction. Get rid of the 16-bit
DPMI code. It's the ONLY solution.
- Raw text -