VOGONS


First post, by Thraka

User metadata
Rank Member
Rank
Member

I made (attached) a program to print file content to a screen, much like the type command. When I use this in DosBox it crashes part way through and I cannot figure out why. I copied the program over to my real dos 6 computer and it runs fine there. Can someone figure out why it's crashing? Thanks!

Also, it only crashes when you use it on a document that has multiple pages and causes the [[ PRESS ANY KEY TO CONTINUE ]] to come up.

Also Also, it needs a DOS extender to run. I've attached one, make sure this file is in PATH or the same directory as the typem.exe file.

The error that appears when dosbox closes is:
Exit to error: CPU_SetSegGeneral: Stack segment zero

Reply 1 of 6, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Maybe try running "cwsdpmi -x" before running the program, as in The Curse of Dragmoria (possibly other Verge 2 games) and Cell Block A Crashes ?

Also, are you using the most recent version of cwsdpmi.exe from http://homer.rice.edu/~sandmann/cwsdpmi/index.html ?

Or try HDPMI from http://www.japheth.de/HX.html#hxdl, as in csdpmi*b.zip???? ?

Reply 2 of 6, by Thraka

User metadata
Rank Member
Rank
Member

Thansk for the reply!

Yes I am using the latest release from that page. Using the HX DPMI fixed the problem. I'm curious as to why CWSDPMI causes a crash 🙁

Reply 3 of 6, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

I'd kind of like to know why as well.

Are you using that same version of CWSDPMI on your DOS 6 computer?

Reply 4 of 6, by Thraka

User metadata
Rank Member
Rank
Member

I cannot tell. It's running in DOS without me running CWSDPMI. Something else must be loading one but I cannot seem to find it. I am using 4DOS as a shell.

EDIT: You know what I'm running DOS 7.1 I bet you it is loading something...

Reply 5 of 6, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
Thraka wrote:

EDIT: You know what I'm running DOS 7.1 I bet you it is loading something...

I doubt it. You probably have some version of CWSDPMI in one of the directories in your PATH.

Alternatively: are you running in MS-DOS mode, or in a Windows 98 "MS-DOS Prompt" ? In the latter case, there is indeed no need for CWSDPMI, as noted in one of the threads I linked to.

Reply 6 of 6, by Thraka

User metadata
Rank Member
Rank
Member

Right you are! I cleared the PATH variable and verified it wouldn't run. Then I loaded the same CWSDPMI I used in DOSBox and it ran with no error. So it must be some sort of incompatability on dosbox side.