delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/13/00:57:45

Date: Thu, 13 May 1993 00:48 EDT
From: "Wonkoo Kim, EE, U. of Pittsburgh" <WKIM AT vms DOT cis DOT pitt DOT edu>
Subject: go32 ??
To: djgpp AT sun DOT soe DOT clarkson DOT EDU

Hi.

I posted some questions about go32 problem and system() call, but no answers.
Can anybody answer to them?  I am again asking you.

1. The go32 problem was:
"go32 myprog" gave an error of exception 14:
   d:/gcc/bin/go32.exe version 1.09 Copyright (C) 1991 DJ Delorie
   Segmentation violation in pointer 0x00000000 at 40:1273
but "aout2exe myprog" and then "myprog.exe" worked well.

The go32 error seems to occur when myprog is big. (but I'm not sure.)
(I didn't have this sort of error with smaller programs.)
What's wrong?  Why are the two ways different?

2. system() call was failed (even for simple dos 'dir' or 'mem' commands) from
the above myprog(.exe size 125KB) if some memory (>=64KB) was allocated after
the program started. (no problem with 16KB allocation).
  Symptom: dos command given in system() was started to execute but the return
  point from system() seemed to be lost, and thus the program crashed.
Some stack broke?
How can I resolve this problem?

Is there any connection between the above two problems?
In my feeling, go32 itself has some bug(?) in handling system() call.???
Or, did I miss something? (compilation option?)

(My system is 486-25Mhz/8MB/msdos 5.0/qemm, go32 v1.09 / gcc2.2.2, 
>600KB free real memory)

Thanks for any help.

Wonkoo.

- Raw text -


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