关闭不再活跃 [英] Closed No Longer Active

查看:84
本文介绍了关闭不再活跃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关闭不再活跃

问题很少被问及且不被理解。

我将采取另一条方法来解决这个问题。

Closed No Longer Active
Question was poorly asked and was not understood.
I am going to take another track at solving this problem.

推荐答案

最有可能的是Split()返回一个只有一个字符串的数组,在这种情况下,在下一行中你试图定位不存在的元素部分[1]。只需打开调试器,然后一步一步地去这个地方检查发生了什么。
Most likely the Split() returns an array of only one string in which case on the next line you try to target non-existing element parts[1]. Just turn on debugger and go this place step by step carefully to check what's going on.


错误信息告诉你所有。

要么你试图访问在数组结束后放置,要么数组比预期短,这或多或少是相同的东西。

你说错误在那里:

The error message tells you all.
either you try to access a place after the end of the array, either the array is shorter than expected which is more or less the same thing.
you say that the error is there:
string inputParam = parts[1].Substring(14);



将此行替换为:


replace this line with:

string Temp = parts[1];
string inputParam = Temp.Substring(14);



并查看它失败的地方。

使用调试器查看变量失败时的值。



更新



嗨汤姆,

看起来你给我的评论已被删除。

要获得答案适合你的问题,不要把错误信息放在标题中,并在代码后删除句子。

两者都是你真正问题的次要影响而且它们具有误导性。

您的代码也与错误消息有关。

关注问题。


and see where it fails.
Use the debugger to see the values of variables when it fail.

Update

Hi Tom,
Looks like you let me a comment that have been deleted.
To get answers that fit your question, don't put the error message in title and remove the sentence after code.
Both are secondary effect of your real problem and they are misleading.
Your code is also related to the error message.
Focus on the problem.


这篇关于关闭不再活跃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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