delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/25/06:34:27

From: dobes AT mindless DOT com (Dobes Vandermeer)
Subject: printf() Trashing stuff
25 Jan 1999 06:34:27 -0800 :
Message-ID: <36AC265E.505C9F83.cygnus.gnu-win32@mindless.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I am getting some really weird errors with printf().  Unlike my last
problem, I *am* including stdio.h, and I do have -Wall enabled.  I am
not getting any warnings or errors, however a step through of my program
reveals that my data structures (which have been properly malloc()'d
etc.) are fine immediately before calling printf, and are completely
ruined after calling printf().  This has happened to me twice now, and
removing the printf() prevents the data from being destroyed.

No other function so far has exhibited this flaw, bu printf() has done
it consistently in this case, which seems to imply that it is not a
random occurance, but something predictable (although I am not
completely sure).

I am just wondering if anyoen else has seem similar problems, or if its
definitely some mistake on my part (some memory not big enough somewhere
or soemthing)

Thanks
Dobes
-
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