Click here to Skip to main content
14,933,861 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
Hi all,
I'm trying to run R in C# Here is the code:

using RServerManager;
using StatConnectorCommonLib;
using StatConnTools;
using StatConnControls;

namespace Rstats
    public partial class Form1 : Form
        private StatConnector rconn;
        private int dataSize;

        public Form1()
            dataSize = 100;
            rconn = new STATCONNECTORSRVLib.StatConnector();

However, I keep getting an error at the Init("R") line as an unhandled com exception?
Any suggestions?
[edit]Code block added - OriginalGriff[/edit]
Updated 26-Mar-11 20:20pm
Sandeep Mewara 27-Mar-11 2:27am
If you add the COM exception here then it would be easier for others to help you out.

1 solution

Considering we have no idea what library you're using, nor anything about it, what that Init method is expecting, any documentation on it, what the error message was, ..., blah, blah, it's impossible for anyone to help you.

Further, you're using a third party library. Don't you think the best source of support on using that library would be the people who wrote it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900