Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

FlWriter version 1.1 available (Announce)

posted by Rugxulo Homepage, Usono, 09.05.2012, 08:43

> > try loading "hdpmi32 -r" first
>
> That did it! I didn't have to use the "-r" switch though -- just running
> HDPMI32.EXE right before FLWRITER.EXE did the trick -- PDF created just
> fine.

Good, but ...

> Very-different results on the "Extended (XMS)" lines!

If you have DJGPP, it doesn't (directly) use anything but DPMI. So what EMS or XMS or raw or whatever it uses depends on the DPMI host program. If you run "go32-v2" (assuming you have it, it comes with DJGPP), it will tell you how much DPMI is available. Or try \hx\test\dpmi.exe instead. (I don't know which DOS or 3rd-party MEM.EXE you're using, but I know FreeDOS' often reports invalid numbers. I get all kinds of weird DOS behavior on this machine thanks to too much RAM.)

Anyways, glad it works for you, but I actually wanted to report my own attempt:

native FreeDOS 1.1, JEMM386 "NOEMS": didn't work

I don't really have any .PS files, so I just grabbed the 1.4 MB one from DJGPP's faq230p.zip. Long story short ...


gs386    exe       1,241,322          pdf2html exe       333,608
pcl      bat       161                ps2pdf   bat       163
djgppfaq ps        1,468,976

23 items: 7 dirs, 16 files totaling 4,726,025 bytes
Wed May 09,2012 01:20:10.59am; 138,153,984 bytes free
Video mode 3 (80*43) on video page 0
Volume label is HalleLU-Jah

[ FreeDOS ] G:\TONY\FLWRITER>ps2pdf djgppfaq
[ FreeDOS ] G:\TONY\FLWRITER>gs386 -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=d
jgppfaq.pdf djgppfaq.ps -c quit
DOS/32A -- DOS Extender version 9.1.2
Copyright (C) 1996-2006 by Narech K.
Error: /VMerror in -file-
VM status: 0 495460 503296
Current allocation mode is local
Last OS error: 1
Current file position is 91351
GNU Ghostscript 7.05: Unrecoverable error, exit code 1

[ FreeDOS ] G:\TONY\FLWRITER>upx -qqqd gs386.exe
[ FreeDOS ] G:\TONY\FLWRITER>stubit gs386.exe >nul
[ FreeDOS ] G:\TONY\FLWRITER>ps2pdf djgppfaq

[ FreeDOS ] G:\TONY\FLWRITER>gs386 -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=d
jgppfaq.pdf djgppfaq.ps -c quit
[ FreeDOS ] G:\TONY\FLWRITER>memid
PMODE VCPI 1.0 XMS 3.0
[ FreeDOS ] G:\TONY\FLWRITER>vv *.pdf
G:\TONY\FLWRITER\*.PDF

djgppfaq pdf       11,464,348         May,09,2012   01:21:00am   A...
[ FreeDOS ] G:\TONY\FLWRITER>scrndump c:\tmp\georgems.txt


So by default it wasn't working under JEMM386 for me. (Similarly, just in general use, D3X also has issues under JEMM386 here.) Actually, I didn't fudge with DOS32A.EXE or GS386.EXE at all (not even via SS.EXE), but it obviously has different ways of handling things. I think I've read comments on the DR-DOS FAQ site (written by DOS386 ?) that DOS/32A implements its own DPMI host, ignoring the existing one, when under VCPI. I don't know how true that is, but anyways, the above error message leaves a lot to be desired.

So re-stubbing with WDOSX (which needs UPX unpacking first else says "wrong exe type") works fine. Not that I recommend WDOSX by default, it has some issues with CWSDPMI shelling out to use it (though HDPMI32 handles it fine). But standalone it works okay, at least to prove a point. And MuPDF does view the resulting .PDF file okay, so it seems to have worked (and took about 10 secs to generate, dunno if that's considered "slow" or quick for you, Georg). And yes, BTW, I rebooted to XMS only (XMGR) and it worked without any problems by default. So there. Hope this (barely) helps! :-P :-D

 

Complete thread:

Back to the forum
Board view  Mix view
22778 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum