s-news
[Top] [All Lists]

call to C function does not return results

To: <s-news@lists.biostat.wustl.edu>
Subject: call to C function does not return results
From: "Doug Bolgiano" <DougB@psbc.org>
Date: Thu, 17 Feb 2005 16:34:53 -0800
Cc: "Dan Heitjan" <dheitjan@cceb.upenn.edu>
Thread-index: AcUVUaosJ6UwQpmxSdG3mzQl3Rl6nQ==
Thread-topic: call to C function does not return results
When I call a function in S-Plus 

         fun.ocgs(ll,uu,0.15,npt)

that calls a C function via .C(), the function appears to execute, but does not 
return any results.  If I assign the output of the function to a variable and 
then try to display the variable I get the following message: 

Problem in close(file): only connection objects or character strings meaningful 
objects, while calling subroutine _ocgs 
Use traceback() to see the call stack.  

Can anyone give me some insight as to what is going on? 

-Doug



************************************************************************
This e-mail and any attachments may contain confidential and
privileged information. It has been scanned for viruses.  If you are
not the intended recipient, please notify the sender immediately by
return e-mail, delete this e-mail and destroy any copies. Any
dissemination, use, review, disclosure, or distribution of this
information by a person other than the intended recipient is
unauthorized and may be illegal.

<Prev in Thread] Current Thread [Next in Thread>
  • call to C function does not return results, Doug Bolgiano <=