[Rcpp-devel] Simple project segfaults
berry at exisoft.nl
Wed Mar 20 23:15:02 CET 2013
Just now I was playing around with Rcpp in combination with Qt (I have
found an excellent example on this). And decided to have a go(small
dummyproject) at this myself. Problem is that the application segfaults
when I run it.
I create an instance of my QtR class called qtr which creates an RInside
session in the constructor. In my mainwindow.cpp I reference to my
instance of qtr and then invoke the loadData method. In the loadData
method I try to use
This results in a segfault.
However when I remove this line from the loadData method and add the
line to the constructor of QtR which is invoked in main.cpp it runs
I probably am making a very obvious mistake. But I seem unable to see
the issue at this point myself.
I have used pastebin for readability, or would everybody prefer the code
within the e-mail?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel