Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

程序运行出错:“System.ArgumentNullException”类型的未经处理的异常在 mscorlib.dll 中发生 其他信息: 值不能为 null。 #13

Open
sy8008 opened this issue Feb 19, 2018 · 6 comments

Comments

@sy8008
Copy link

sy8008 commented Feb 19, 2018

//将要执行的函数转换为委托
public Delegate Invoke (string APIName,Type t)
{
IntPtr api = GetProcAddress(hLib, APIName);
return (Delegate)Marshal.GetDelegateForFunctionPointer(api, t);
}
错误定位在return 这一行,
显示:System.ArgumentNullException”类型的未经处理的异常在 mscorlib.dll 中发生 其他信息: 值不能为 null。

@stalkercn
Copy link

一样的问题 "do_lps"作为参数传入就会报ArgumentNullException错误

@zyjia
Copy link

zyjia commented Jul 27, 2018

我的是visual studo 2017,opencv3.4.1,编译通过,也是报同样的错误,希望解决。

@beewolf2018
Copy link

有解决方案:将编译后的create.dll文件和opencv_world310.dll放在system32下就可以了,估计还是环境变量未设置好。
PS:不是我发现的,是ISSUE中有人写了

@beewolf2018
Copy link

刚刚又测试了一下,估计各位与我一样,没有设置环境变量。
2.添加环境变量:[opencv安装目录]\opencv\build\x64\vc12\bin
作者已经写明了。

@valucn
Copy link

valucn commented Nov 10, 2019

添加到系统还是用户的Path中?

@ttt-wqy
Copy link

ttt-wqy commented Dec 6, 2020

一样的问题 "do_lps"作为参数传入就会报ArgumentNullException错误

请问您解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants