From murdoch at stats.uwo.ca  Wed May  3 16:22:39 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Wed, 03 May 2006 10:22:39 -0400
Subject: [Rd] R freezes under Windows while loading package
In-Reply-To: <Pine.A41.4.42.0605031551350.48928-100000@aixterm6.urz.uni-heidelberg.de>
References: <Pine.A41.4.42.0605031551350.48928-100000@aixterm6.urz.uni-heidelberg.de>
Message-ID: <4458BCAF.80704@stats.uwo.ca>

On 5/3/2006 10:14 AM, Sebastian Manz wrote:
> Hi,
> 
> we build this R package using C++ code and under linux it works fine.
> After installing:
> - R version 2.2.1
> - minGW gcc version 3.4.2
> - perl version 5.8.8
> it finally compiled under Windows as well. But, if we try to load the
> library, R freezes without stressing the CPU.
> 
> Maybe someone had a similar problem and now has a simple solution for
> it.

Presumably the problem is in the DLL.  Can you use dyn.load() to load it 
manually?  If so, you can set a debug breakpoint on each entry point, 
and see where things are going wrong.  Instructions for doing C-level 
debugging under Windows are on my web page,

http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/

and more general-purpose instructions are in the Writing R Extensions 
manual in 2.3.0.

Duncan Murdoch



[Rd] R freezes under Windows while loading package
Duncan Murdoch