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 16:39
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Are there any DJGPP programming experts? Please help take a look. View 1,223 Replies 10
Original Poster Posted 2003-06-08 00:00 ·  中国 陕西 西安 教育网
初级用户
Credits 122
Posts 5
Joined 2003-06-08 00:00
23-year member
UID 4406
Gender Male
Status Offline
Recently I used DJGPP to write a fairly large graphics program. Everything is normal when it first runs (including floating-point operations), but after it runs for a while, an exception occurs saying the coprocessor cannot be accessed. The runtime before the exception is not fixed, but when the exception occurs, the IP value is always the same. When the program terminates, it shows that both the CS and SS selectors are invalid.
Machine specs: CPU: Cyrix MMX-S 233
Memory: 128M
Hard disk (electronic disk): 32M
Could some expert help analyze what the problem is? I've been struggling with it for nearly a month and still have no clue at all.

3X


Floor 2 Posted 2003-06-08 00:00 ·  中国 台湾 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
How about trying an Intel processor instead~
MSN:tiqit2@hotmail.com
Floor 3 Posted 2003-06-08 00:00 ·  中国 陕西 西安 教育网
初级用户
Credits 122
Posts 5
Joined 2003-06-08 00:00
23-year member
UID 4406
Gender Male
Status Offline
Hehe, since the product has already been finalized, changing the processor is basically impossible.

Is there any other way?
Floor 4 Posted 2003-06-08 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
Just this much (brief) information? Even if others want to help, they can't.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 5 Posted 2003-06-08 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Please explain it in more detail.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 6 Posted 2003-06-08 00:00 ·  中国 陕西 西安 教育网
初级用户
Credits 122
Posts 5
Joined 2003-06-08 00:00
23-year member
UID 4406
Gender Male
Status Offline
Floor 7 Posted 2003-06-09 00:00 ·  中国 陕西 西安 教育网
初级用户
Credits 122
Posts 5
Joined 2003-06-08 00:00
23-year member
UID 4406
Gender Male
Status Offline
The detailed information is above, please help take a look.

Thanks!
Floor 8 Posted 2003-06-09 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
There are two possibilities:

1: There may be some errors in the program itself;
2: The DJGPP version being used is too old, you can try updating it.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 9 Posted 2003-06-09 00:00 ·  中国 陕西 西安 教育网
初级用户
Credits 122
Posts 5
Joined 2003-06-08 00:00
23-year member
UID 4406
Gender Male
Status Offline
1, The program runs without any problem on a PII350 machine; I don't know whether this can rule out a problem with the program itself;
2, The DJGPP version I'm using is 2.01. I don't know what the latest version is, or where to download it?
Floor 10 Posted 2003-06-09 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Download the latest version of DJGPP here:
http://www.delorie.com/djgpp/
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 11 Posted 2006-02-18 10:17 ·  中国 广东 佛山 禅城区 电信
初级用户
Credits 28
Posts 10
Joined 2006-02-13 11:10
20-year member
UID 50286
Status Offline
It may be that you are repeatedly calling the graphics-reading function, causing a memory overflow.
Forum Jump: