When executing the attached program (which accepts input and echos it back to the screen) in DosBOX 0.72, after entering a second character, DOSBox exits with the following error:
Exit to error: CPU_SetSegGeneral: Stack segment zero
This program works correctly in DOS, and also in a previous version of DOSBox (I forget which version I had previously, but I think it was in the 0.5s or low 0.6s).
test program
Logged In: YES
user_id=1837056
Originator: YES
Actually, I couldn't get this to work in any version of DOSBox.
This does not seem to work on a real dos system,
how exactly did you verify it works?
What version of cwsdpmi did you use?