Hello List,<br><br>I wrote a C++ program that does the following:<br><br>**************************************************************<br><br>int main (int argc, char **argv)<br>{<br>   RInside* temp_1 = new RInside (argc, argv)<br>
<br>   // use temp_1 to load &quot;temp_1.RData&quot;, and invoke<br>   // functions that are defined within &quot;temp_1.RData&quot;<br><br>   ......<br><br>   // Delete the created RInside instance<br><br>   delete temp1;<br>
<br>  // create another RInside instance, as we now would<br>  // like to load &quot;temp_2.RData&quot; and invoke functions<br>  // defined within &quot;temp_2.RData&quot;<br><br>  RInside* temp_2 = new RInside (argc, argv)<br>
<br>   // use temp_2 to invoke operations within &quot;temp_2.RData&quot;<br><br>   ....<br><br>   // Delete the created RInside instance<br><br>   delete temp_2;<br>}<br><br>*********************************************************************<br>
<br>The above described program crashes when we try to create the &quot;temp_2&quot; RInside object, and gives the following error:<br><br>Error in .Call(&quot;R_isMethodsDispatchOn&quot;, onOff, PACKAGE = &quot;base&quot;) :
<br>  Incorrect number of arguments (2), expecting 1 for R_isMethodsDispatchOn
<br><br>Can you please let me know what should I do to properly delete the &quot;temp_1&quot; RInside object, so that I could create &quot;temp_2&quot; RInside object and proceed with my program?<br><br>Thanks,<br>P.<br>