www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/12/10:52:51

From: Michael DOT Emrich AT rt DOT bosch DOT de (Emrich Michael QI/LBS3-Rt)
Subject: AW: Please Help: system() Bug in cygnus-2.7.2-970404
12 Feb 1998 10:52:51 -0800 :
Message-ID: <C9DB0669A294D111BF8700005A40EA32016916.cygnus.gnu-win32@rtmail2.rt.bosch.de>
Mime-Version: 1.0
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>
Cc: "'Keet / Foxbird'" <Keetnet AT wilmington DOT net>

Hello,

I compiled the same program on my machine (NT4.0 SP3 / Intel Pentium) with
the Microsoft C++ Compiler 4.0. It runs
without any errors 1024 times.
#include <stdio.h>
main()
{  
  char syscmd[124];
  int i=0;

  for(i=0;i<1024;i++) {
    sprintf(syscmd,"echo %d",i);
    system(syscmd);
  }
}
 

With regards

Michael Emrich
_________________________________________________________
Robert Bosch GmbH ; QI/LBS3-Rt; Postfach 1342; 72703 Reutlingen
Tel: (07121)/35-3261; Fax: -3150; Internet: Michael DOT Emrich AT pcm DOT bosch DOT de


> -----Ursprüngliche Nachricht-----
> Von:	Keet / Foxbird [SMTP:Keetnet AT wilmington DOT net]
> Gesendet am:	Donnerstag, 12. Februar 1998 02:23
> An:	Emrich Michael (QI/LBS3-Rt); 'gnu-win32 AT cygnus DOT com'
> Betreff:	Re: Please Help: system() Bug in cygnus-2.7.2-970404
> 
> At 04:07 PM 2/11/98 +0100, Emrich Michael (QI/LBS3-Rt) wrote:
> >Hello,
> >when you call system() more than 98 times you get the following message.
> 
> <snip>
> 
> Despite a warning about implicit calling of the 'system(...)' function, it
> compiled fine under gcc and g++. When I ran it.. It went past the number
> 98
> and up into the hundreds. Perhaps it's computer related, or perhaps
> there's
> a bug in the memory handling routines? (I've noticed similiar things
> calling MALLOC too many times, or doing millions of string manipulations
> in
> short amounts of time). Just thought I'd let you know it's more confusing
> than we could have imagined.
> 
> - Keet / Foxbird
>   keetnet AT wilmington DOT net
> 
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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