[R] question about dll crashing R

2006-08-03 Thread Benn Fine
I have ported some R code to C to make it faster. I can perform .Call(foobar,) once and it works fine. Absolutely correct answer. If I put a loop inside foobar and run the main code routine more than 100 times, it crashes R. Or if I call .Call(foobar) seperately more than two tims it

Re: [R] question about dll crashing R

2006-08-03 Thread Thomas Lumley
On Thu, 3 Aug 2006, Benn Fine wrote: I have ported some R code to C to make it faster. I can perform .Call(foobar,) once and it works fine. Absolutely correct answer. If I put a loop inside foobar and run the main code routine more than 100 times, it crashes R. Or if I call

Re: [R] question about dll crashing R

2006-08-03 Thread Prof Brian Ripley
On Thu, 3 Aug 2006, Thomas Lumley wrote: On Thu, 3 Aug 2006, Benn Fine wrote: I have ported some R code to C to make it faster. I can perform .Call(foobar,) once and it works fine. Absolutely correct answer. If I put a loop inside foobar and run the main code routine more