R接口出现C#错误并出现com异常 [英] R interface with C# error with com exception

查看:104
本文介绍了R接口出现C#错误并出现com异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我试图在C#中运行R,代码如下:

Hi all,
I''m trying to run R in C# Here is the code:

using RServerManager;
using STATCONNECTORCLNTLib;
using StatConnectorCommonLib;
using STATCONNECTORSRVLib;
using StatConnTools;
using StatConnControls;

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

        public Form1()
        {
            InitializeComponent();
            dataSize = 100;
            rconn = new STATCONNECTORSRVLib.StatConnector();
            rconn.Init("R");
            
        }


但是,由于未处理的com异常,我在Init("R")行不断收到错误消息吗?
有什么建议吗?
谢谢
[edit]添加了代码块-OriginalGriff [/edit]


However, I keep getting an error at the Init("R") line as an unhandled com exception?
Any suggestions?
Thanks
[edit]Code block added - OriginalGriff[/edit]

推荐答案

考虑到我们不知道您使用的是哪个库,也不知道它的初始化方法是期望的,关于它的任何文档,错误消息是什么,...等等等等,任何人都不可能帮助您.

此外,您正在使用第三方库.您不认为使用该库的最佳支持来源是编写该库的人吗?
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?


这篇关于R接口出现C#错误并出现com异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆