delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/25/04:07:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,HK_OBFDOM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
From: "DEWI - N. Zacharias" <N DOT Zacharias AT dewi DOT de>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Thu, 25 Mar 2010 10:07:16 +0100
Subject: Core dump after reading from /proc/registry
Message-ID: <8CCC8F85C5F2784387A32FAD835FB4E602DBF13942@server03>
References: <288482661 DOT 5731269425114860 DOT JavaMail DOT root AT fqdn> <4BA9EFF9 DOT 70403 AT sbcglobal DOT net> <8CCC8F85C5F2784387A32FAD835FB4E602DBF1393D AT server03>
In-Reply-To: <8CCC8F85C5F2784387A32FAD835FB4E602DBF1393D@server03>
MIME-Version: 1.0
X-CheckCompat: OK
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

 Hi All,


To read the content of a registry key  I use :

my $ww =3D IO::File->new("</proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/shbox=
/freepdfxp/fpDir");
my $Reg_FreePdf_Path =3D <$ww>;
$ww->close();

It works but a subsequent call  system("cd /cydrive/c/whatever")  crashes w=
ith
a core dump.

The strange thing is that if I  use another key it works it don't crash

The key which works is:

/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Office/12.0//Word/Inst=
allRoot/Path (Reg_SZ)

But if I use
/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/shbox/freepdfxp/fpDir (Reg_SZ)

I get a core dump

Do someone has an idea what's going wrong here ??

Have a nice time
Norbert


--------------------------------------------------------------------------
Dipl. Phys.
Norbert Zacharias
Wind Measurements & Power Curve Measurements
DEWI GmbH
Ebertstrasse 96
26382 Wilhelmshaven
Germany


Tel.:   +49 4421 4808 876

Fax:    +49 4421 4808 843


Email:  N DOT Zacharias AT dewi DOT de
Home:   http://http://www.dewi.de

DEWI GmbH - Deutsches Windenergie-Institut, Wilhelmshaven
Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
Managing Director: Jens Peter Molly
Chairman of the supervisory board: Ministerialrat Dr. Niels K=E4mpny

P Please consider the environment before printing this email.



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