delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/14/07:55:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3F8BE1B9.3000704@cs.york.ac.uk>
Date: Tue, 14 Oct 2003 12:44:57 +0100
From: chris <caj AT cs DOT york DOT ac DOT uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: cygpath hangings
References: <20031014100230 DOT A12215 AT fw DOT j-son DOT org> <006501c392b7$dc780730$200aa8c0 AT thorin>
In-Reply-To: <006501c392b7$dc780730$200aa8c0@thorin>
X-Scanner: exiscan *1A9Nbf-0002Ew-CU*UCXki1SXcho*

I decided to try to put some investigation into the cygpath crashings 
that have been reported so much. Here are my findings.. I hope this 
helps! I'd be happy to try further debuggings, except I couldn't figure 
out how to attach a debugger to the program (because as previously noted 
the hang only occurs when running from setup.exe)

I used the basic setup contained in 
http://www.cygwin.com/ml/cygwin-apps/2003-10/msg00049.html , but made a 
new program I call cygcrash.cc, which I include the source code to at 
the end of this message. If I comment out the call to 
SHGetPathFromIDList in this program, the program returns, else it hangs.

Also, This program seems to be both valid c++ and c code. If it is 
compiled in gcc, all is fine. In g++, it hangs.

If there is anything else anyone would like me to try (like taking a -E 
and picking out all the useless bits of shlobj.h), I'd be happy to do 
so, but won't unless it will be useful to someone :)

-- Code begins --

#include <shlobj.h>

void fee (void) {
  char *buf;
  LPITEMIDLIST id;
  SHGetPathFromIDList (id, buf);
}


int main (int argc, char **argv)
{
    return 0;
}



--
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/

- Raw text -


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