您的位置:首页 > 其它

Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex

2010-01-20 16:59 861 查看
在下载安装poderosa后 连接 cygwin时出现以下问题

Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: startIndex

解决方案

下载poderosa 源代码,

将其中 LocalShell.cs 中

char[] buf = new char[8192];

int n = Win32.GetEnvironmentVariable("PATH", buf, buf.Length);

改为

char[] buf = new char[8192];

int n = Win32.GetEnvironmentVariable("PATH", buf, buf.Length);

就Okay了

问题原因 PATH太长了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐