delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/28/09:18:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 28 Feb 2012 15:17:54 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.10/1.7.11: .Net programs started from a cygwin console may fail.
Message-ID: <20120228141754.GA6518@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4F4BA00E DOT 2020806 AT prover DOT com> <20120228125601 DOT GC23440 AT calimero DOT vinschen DOT de> <CAG_2cTnWAJpdHw5m8f_VSAmRy9-R-_C6qfD74Me7Sv7OSjwRkw AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAG_2cTnWAJpdHw5m8f_VSAmRy9-R-_C6qfD74Me7Sv7OSjwRkw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Feb 28 08:51, Jon Clugston wrote:
> On Tue, Feb 28, 2012 at 7:56 AM, Corinna Vinschen wrote:
> 
> 
> > The problem is that I have not the faintest insight into .Net.  This is
> > an application written in a language I don't know, using a class library
> > I don't know, using a compiler I don't know.  And the executable isn't
> > even a Cygwin application so it doesn't call Cygwin functions.  So I
> > have no idea what problem this application has.  What on earth is it
> > trying to tell me?
> >
> >  Unhandled Exception: System.ArgumentException: Item has already been added. Key
> >  in dictionary: 'tmp'  Key being added: 'tmp'
> >     at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
> >     at System.Collections.Hashtable.Add(Object key, Object value)
> >     at System.Collections.Specialized.StringDictionary.Add(String key, String value)
> >     [etc.]
> >
> 
> Just a guess, but it does look suspiciously like the name of an
> environment variable.  Wasn't there some discussion lately about
> differing case environment variables ("tmp" as opposed to "TMP")?

Dead on, thanks!  The definitions of tmp and temp in /etc/profile result
in a double definition of the %TMP% and %TEMP% dos variables from the
.Net applications POV and it's too dumb to handle that gracefully.

So the solution is, either we drop the tmp and temp definitions in
/etc/profile, or old .net apps should be started only after calling
`unset tmp temp' in bash.

Btw., tmp and temp are not preserved this way in tcsh's profile scripts.
So I'm wondering why we do it in /etc/profile.  Can somebody give me a
management summary?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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