Re: [Rd] R unstable and crashes after executing .C

2007-02-21 Thread Prof Brian Ripley
Please do as I suggested in my reply to your message to R-help! And do read the posting guide and not send HMTL mail. On Wed, 21 Feb 2007, Sole Acha, Xavi wrote: Dear R listers, I have developed a C function to be executed from R through the ".C" interface. After doing dyn.load, the functio

Re: [Rd] R unstable and crashes after executing .C

2007-02-21 Thread Oleg Sklyar
There are many packages around that use .C and .Call interfaces with really huge objects and still are pretty stable. The error is most likely in your own C code and it most likely to be connected to memory allocation/deallocation or array indexing, but without having the code here no one will

[Rd] R unstable and crashes after executing .C

2007-02-21 Thread Sole Acha, Xavi
Dear R listers, I have developed a C function to be executed from R through the ".C" interface. After doing dyn.load, the function executes properly and I get the results. However, after executing my function, R seems to get unstable and crashes (giving a segmentation fault and exiting) when