public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: cygwin@cygwin.com
Subject: Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
Date: Wed, 14 Jul 2004 17:38:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.58.0407141327310.29800@slinky.cs.nyu.edu> (raw)
In-Reply-To: <20040714171503.GX1389@cygbert.vinschen.de>

On Wed, 14 Jul 2004, Corinna Vinschen wrote:

> On Jul 14 17:58, Dave Korn wrote:
> > > -----Original Message-----
> > > From: cygwin-owner On Behalf Of Igor Pechtchanski
> > > Sent: 14 July 2004 04:22
> >
> > > Ok, the theory washed out.  The code above is actually simply buggy.
> > > When RegQueryValueEx is called (2 lines below the arrow), the "size"
> > > parameter is uninitialized, so, in effect, it keeps thinking that
> > > the buffer has some random size and reallocating (which, of course,
> > > doesn't change the size, hence the infinite loop).
> >
> >   I concur; that is bad code.  The variable unambiguously needs
> > initialising, and since RegQueryValueEx damages it, it needs to be re-set
> > each time round the loop.
> > [...]
>
> I'm wondering if that isn't mildly OT here.  Shouldn't that be discussed
> on cygwin-developers in a perfect world?
>
> Corinna

Yes, but the world is not perfect, and if we move this thread to
cygwin-developers now, we'll lose thread continuity.  I'll do it if you
insist, though.  I'm about to reply to Dave, so please let me know.  :-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  parent reply	other threads:[~2004-07-14 17:28 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-13 14:10 Reini Urban
2004-07-13 14:30 ` Igor Pechtchanski
2004-07-13 15:09   ` Dave Korn
2004-07-13 15:19     ` Corinna Vinschen
2004-07-13 15:28       ` Dave Korn
2004-07-13 15:41         ` Igor Pechtchanski
2004-07-13 15:57           ` Dave Korn
2004-07-13 16:21             ` Igor Pechtchanski
2004-07-13 22:05               ` Yitzchak Scott-Thoennes
2004-07-13 22:20                 ` Igor Pechtchanski
2004-07-13 22:44                   ` Yitzchak Scott-Thoennes
2004-07-13 23:18                     ` Igor Pechtchanski
2004-07-14  2:23                       ` Igor Pechtchanski
2004-07-14  2:32                         ` Yitzchak Scott-Thoennes
2004-07-14  3:22               ` Igor Pechtchanski
2004-07-14 17:14                 ` Dave Korn
2004-07-14 17:17                   ` Corinna Vinschen
2004-07-14 17:28                     ` [OT] " Dave Korn
2004-07-14 18:34                       ` Dave Korn
2004-07-15  2:28                         ` Christopher Faylor
2004-07-14 18:42                       ` Developer's list archive policy - was " Larry Hall
2004-07-14 17:38                     ` Igor Pechtchanski [this message]
2004-07-14 18:30                   ` Igor Pechtchanski
2004-07-14 18:40                     ` Igor Pechtchanski
2004-07-14 18:45                     ` Dave Korn
2004-07-14 18:48                     ` Corinna Vinschen
2004-07-14 21:42                       ` Igor Pechtchanski
2004-07-19 18:36                 ` Chris January
2004-07-19 19:47                   ` Igor Pechtchanski
2004-07-19 21:56                     ` Robert Pendell
2004-07-20  0:25                       ` Igor Pechtchanski
2004-07-20 20:06                         ` Robert Pendell
2004-07-26 15:15                     ` Chris January
2004-07-26 15:52                       ` Igor Pechtchanski
2004-07-26 16:50                         ` Chris January
2004-07-14 10:58   ` Reini Urban
2004-07-14 12:39     ` Igor Pechtchanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.58.0407141327310.29800@slinky.cs.nyu.edu \
    --to=pechtcha@cs.nyu.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).