I'm having problems with an access violation error on some compiled code
that I'm writing and I was hoping that some one had insights as to what
might be causing the access violation and possibly how to remedy it.
Here's the situation. The compiled code performs an EM algorithm on the
data for given penalty parameters. The penalty parameters are estimated
through optim on the cross validated log likelihood. The program works most
of the time. When the EM Algorithm fails to converge the program crashes on
garbage collection. Although this makes little sense, as there is no
special computations when the algorithm fails to converge.
The compiled code can either free it's used memory or let R's garbage
collection take care of it, it makes no differeence, the program still
crashes.
Any help on trying to either fix or even help on figuring it out, like tools
to use, would be a great help.
Thanks,
Andrew
[[alternative HTML version deleted]]