www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/24/10:23:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36D440A5.8C16C3F6@pobox.com>
Date: Wed, 24 Feb 1999 10:10:46 -0800
From: "Morgan D. Jones" <mjones AT pobox DOT com>
Organization: Objectverse, Inc.
X-Mailer: Mozilla 4.06 [en] (WinNT; U)
MIME-Version: 1.0
To: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>
CC: cygwin mailing list <cygwin AT sourceware DOT cygnus DOT com>,
David Young <dyoung AT vviuh221 DOT vvi DOT com>
Subject: Re: nt fclose() question...
References: <199902231624 DOT KAA04714 AT modi DOT xraylith DOT wisc DOT edu>

Mumit...  sure enough...
I linked with electric fence and found I have some sort of memory problem that
I've never tracked down before.  This code has been in use for over a year
with only intermittent unexplained crashes.... (hence the memory error)

Thanks for the tip... I'm going to fix the memory error and see how the
fclose() works then...

Thanks again. MDJ

Mumit Khan wrote:

> "Morgan D. Jones" <mjones AT pobox DOT com> writes:
> > hi all...
> >
> > i've looked (not exhaustively) for an answer to this question, to no
> > avail...
> > I had a ANSI C console program on a mac that I wanted to port to NT...
> >
> > First I moved it to Linux and got it to work with gcc there...
> > (basically no modifications)
> > I then moved it to NT running cygwin 20.1...
> >
> > now I get a STATUS_ACCESS_VIOLATION when I perform an fclose()??  Mind
> > you this code worked fine under linux and Metrowerks C on a power Mac...
>
> More often than not, this type of access violation error typically arise
> due to a memory corruption bug in user's code. Please understand that
> just because a piece of code runs under a few systems, doesn't mean that
> it doesn't have bugs.
>
> Here's my suggestion: use a memory debugger and see if your code is clean.
> If it is, then it's possibly a bug in Cygwin or newlib (C library); please
> see if you can put together a bug report that we can look at.
>
> Since you have access to Linux, you can use ElectricFence to see if it
> catches anything. You can find prebuilt RPMs in various sites (search
> in http://www.rpmfind.net/).
>
> Regards,
> Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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