VOGONS


First post, by mcs

User metadata
Rank Newbie
Rank
Newbie

I have recently upgraded my PCB CAD software, and the latest (= last DOS) version includes a PE (windows) executable. So I can't run it in an OS/2 DOS window anymore...

The PE part can be handled with the HX DOS extender (http://www.japheth.de/HX.html), but the OS/2 DPMI host doesn't like DOS programmes that run PE executables...

DOSBox was suggested as a possible solution, and I do get most of the way. After starting DOSBox and mounting the drives, I run the commands hdpmi16 -r and hdpmi32 -r to support 16 bit and 32 bit DPMI apps.

I first tried using the "automatic" PE-loader HXLdr32, but that just results in the error "Loader error (0025): cannot initialize"

For the next test I converted the PE exe using pestub (from the HX package). This seems to work better.The programme starts to load, but I get this error instead: dpmild32: E:\LAYO1\LAYO1P\LAYO1PCB.EXE: out of memory
layo1pcb.exe is the PE exe, and dpmild32 is the PE loader.

Any ideas why dpmild32 runs out of memory? Changing the standard 16MB memory setting to 64MB doesn't change it.

My DOSBox version is 0.72, and I run it on OS/2.

Running other parts of the app (that don't need the PE part) work. The app switches between 80x25 text and 800x600 VESA, and that works fine. All three mouse buttons also work.

Best regards,

Mikkel C. Simonsen

Reply 1 of 2, by mcs

User metadata
Rank Newbie
Rank
Newbie

With a bit of help from the HX author, I finally got it running. The problem was that the PE exe tries to allocate much more memory for stack than it needs. By setting the environment variable DPMILDR=4096 that's fixed.

But it's still not quite useable, unfortunately. The screen redraws are very slow, compared to the OS/2 VDM, but that's possible to live with. The very jerky mouse cursor isn't. Some times the mouse operates slowly, and at other times you scroll passed the drawing many times just with a tiny push.

Are there any settings that may influence this?

Best regards,

Mikkel C. Simonsen

Reply 2 of 2, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

What is the CPU load while you run DOSBox?

Have you tried upping the cycles setting?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32