s-news
[Top] [All Lists]

Issue calling a C dll from Splus 8.0

To: s-news@wubios.wustl.edu
Subject: Issue calling a C dll from Splus 8.0
From: Glenn Treacy <gatreacy@maths.tcd.ie>
Date: Wed, 13 Aug 2008 10:54:03 +0100 (BST)
Hi,

I have come across a baffling problem. I have a long job that calculates a
series of factor models including a particularly large one. The estimation
of the factor model uses the EM algorithm which is coded in C
(compiled in Microsoft Visual Studio 6 if memory serves) and sits
within a dll. I should point out that I am a Windows XP user.


This job worked fine under S+6.2 but when dynamic memory errors started to
appear out of nowhere for the large model. Upgrading from 500MB to 2GB of ram
didn't solve the problem. Moving the job to Splus 8 saw the smaller jobs
run much quicker but now the large job is failing and the error appears to
be related to the C dll (the EMmain function) which has never caused any
problems.

This message comes from a traceback

Message: Problem: Invalid frame number (0) in set_frame, while calling 
subroutine EMmain

while this message is coming from the log file associated with the batch
job

    Object ".Random.seed" not found in frame 1 for permanent assignment (maybe 
assigned a `for' loop variable?)


Thanks in advance,
Glenn Treacy

<Prev in Thread] Current Thread [Next in Thread>