puzzling script bug
Weeell , you were absolutely right. Turns out I was trying to be too clever by allowing for a different sized array in each call to a .C dll within the same R script. Changed it to the max size the script can request and all is gas and gaiters. Thanks for the pointer. Cheers Bob kinley -----Original Message----- From: Patrick Burns [mailto:pburns at pburns.seanet.com] Sent: 21 September 2012 09:27 To: Robert Douglas Kinley Subject: Re: [R] puzzling script bug Bob, I haven't noticed if you've had any responses or not. The '.C' calls are almost surely the problem, and the problem with them is that there is probably a memory out of bounds problem. The best way to find those is to use valgrind on Linux. Trying to find them under Windows is hard. As in really hard. Good luck, Pat
On 20/09/2012 16:34, Robert Douglas Kinley wrote:
Windows XP (SP3) , R 2.15.1 32bit Hi ... I have a script which fails and closes my R session. Unfortunately, it bombs out at a different point each time I run it. I'm guessing that it may be something to do with memory management, or perhaps it's to do with the various .C dll's the script calls. Has anyone come across similar problems and if so, how did you track down the cause ? Pathetically grateful for any pointers ... Cheers Bob Kinley
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Patrick Burns pburns at pburns.seanet.com twitter: @portfolioprobe http://www.portfolioprobe.com/blog http://www.burns-stat.com (home of 'Some hints for the R beginner' and 'The R Inferno')