delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/06/12:14:35

Date: Wed, 6 Jul 94 12:22:16 EST
From: acmq AT beta DOT coe DOT ufrj DOT br (Antonio Carlos Moreirao de Queiroz)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Exception error in strcpy

Hi,

I have a program that compiles and runs perfectly in a 386 PC, but when I try
to execute it in a 486 PC, using "go32 prog", I get an error. Tracing the error
with the debugger ("go32 -d edebug32 prog"), I find that the error occurs in
the "strcpy" function. The last lines that the debugger prints are:

0001992e:89cb  mov ebx,ecx  ecx=0001dc20
00019930:8902  mov al,[edx] edx=00000000
eax=7ffffb00 ebx=0001dc20 ecx=0001dc20 edx=00000000
esi=7ffffbd8 edi=00000000 ebp=7ffffba4 RF UP IE PL ZR PE NC
ds=0048 es=0048 fs=0048 gs=0038 ss:esp=0048:7ffffba0 cs=00d8
exception 14 (0xe) ocurred, error code=0
00019930:8902  mov al,[edx] edx=00000000

Pressing "n" repeats the error message.
The program was in graphics mode, using the bcc2grx library. With the used
installation, all the examples of the grx and bcc2grx modules run perfectly.

Some idea? How can a register load cause an exception error?

Thanks,

Antonio Carlos M. de Queiroz

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019