Calling Pocketsphinx in C# AccesViolationException

拈花ヽ惹草 提交于 2019-12-05 21:51:34

You don't check for errors anywhere. And it's wrong to set SetLastError to true for these functions. They won't call SetLastError.

Your big problem though is that the library uses a particular instance of the C runtime, depending on how you built it. And your fopen import is from a different instance of the C runtime.

You'll need to add some code to the library that exposes functions to create and destroy FILE* objects. By doing that you'll get a FILE* made by the correct runtime.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!