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太长了
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太长了
相关文章推荐
- .NET中使用GridView控件输入数据时出现“ Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"的问题
- System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list
- Row index must be greater than or equal to zero and less than the number of rows.
- the item width must be less than the width of the UICollectionView minus the section insets left and
- startIndex can not be larger than length of string. Parameter name: startIndex
- dataGridView报错Index was out of range. Must be non-negative and less than the size.
- Ogre出现”…The minimum corner of the box must be less than or equal to maximum corner”错误
- Index and length must refer to a location within the string. Parameter name: length (mscorlib)
- SharePoint 报错: The specified file or folder name is too long. The URL path for all files and folders must be 260 characters or less
- Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0
- mybatis的sql 执行报错:Parameter index out of range (4 > number of parameters, which is 3)
- mysql Parameter index out of range (2 > number of parameters, which is 1).
- 更新数据库表信息时抛异常java.sql.SQLException: Parameter index out of range (1 > number of parameter
- Sys.ArgumentOutOfRangeException: Value must be an integer
- TableView出错:Either the tableModel parameter or both source and columns parameters must be specified by component.....
- 解决used as the name of the previous parameter rather than as part of the selector(⚠️)方法
- Parameter index out of range (1 > number of parameters, which is 0).
- Index was out of range when editing DataRow
- 微信证书 javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
- 問題排查:index was out of range (1)