访问语音异常未处理 [英] access voilation exception Unhandled

查看:71
本文介绍了访问语音异常未处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[DllImport("ABCD.dll")]
       public static extern void CI_CompileProgram([MarshalAs(UnmanagedType.LPWStr)]String xmlFile, [MarshalAs(UnmanagedType.LPWStr)]String wsSavePath);


path = "C:\\Program Files\\DIGISPORT\\first.xml";
                path2 = "C:\\Program Files\\DIGISPORT\\";
                          CI_CompileProgram(path, path2);





当控制命中CI_CompileProgram(path,path2);发生异常......我在谷歌上找不到任何解决方案...任何帮助都将不胜感激..

谢谢,



As control hits CI_CompileProgram(path,path2); Exception occurs... I couldn''t find any solution on google... Any help would be appreciated ..
Thank you,

推荐答案

最可能的原因是程序文件文件夹及其子文件夹通常不允许写入访问 - 并且出于安全原因。由于您似乎正在尝试将somthing编译到文件夹中,因此您可能必须具有管理员权限,或者(可能,我还没有尝试过)为DIGISPORT文件夹提供对每个人的完全访问权限。我不会 - 我会将我的数据存储在其他地方,不需要特别许可!
The most likely reason is that the "Program files" folder and it''s subfolders are not normally write access permitted - and for good security reasons. Since it would appear that you are trying to compile somthing into a folder, you will probably have to either have admin privileges, or (possibly, I haven''t tried) give full access to everybody to the DIGISPORT folder. I wouldn''t though - I would store my data elsewhere that doesn''t need special permission!


这篇关于访问语音异常未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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