China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 05:44
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Question about DJGPP View 961 Replies 3
Original Poster Posted 2004-02-09 00:00 ·  中国 广东 深圳 罗湖区 电信
初级用户
Credits 123
Posts 7
Joined 2004-02-09 00:00
22-year member
UID 17039
Gender Male
Status Offline
Experts, I have the following question, many thanks!

I used djgpp+allegro to write a DOS program. For debugging convenience, I have been compiling and testing it all along in the virtual DOS under WIN2000. Now that the program is about to be finished, I found that a program which runs normally in virtual DOS will produce a memory error and abort when run under DOS7. I'd like to ask all the experts, how can this be solved?
I feel it is a DOS environment setup problem, but I don't know where to start solving it???

The execution sequence is as follows:
set djgpp=c:\djgpp\djgpp.env
path c:\djgpp\bin
cwsdpmi.exe
main.exe this is my application
Then the error appears, reporting a bunch of memory addresses.
Floor 2 Posted 2004-02-10 00:00 ·  中国 江苏 南京 电信
初级用户
Credits 140
Posts 18
Joined 2004-02-03 00:00
22-year member
UID 16630
Gender Male
Status Offline
Try a different DPMI Server. Use dos32 extender or something else.
Floor 3 Posted 2004-02-10 00:00 ·  中国 广东 深圳 罗湖区 电信
初级用户
Credits 123
Posts 7
Joined 2004-02-09 00:00
22-year member
UID 17039
Gender Male
Status Offline
OK, I'll go try it and tell you the result tomorrow, many thanks!
Floor 4 Posted 2004-02-13 00:00 ·  中国 广东 深圳 罗湖区 电信
初级用户
Credits 123
Posts 7
Joined 2004-02-09 00:00
22-year member
UID 17039
Gender Male
Status Offline
It's already solved. I was still using cwsdpmi; running it with a parameter was enough: cwscdpmi -x.
Forum Jump: