关于[Index was outside the bounds of the array.]的问题

Chobohoo 2013-04-19 02:15:27
Hi,各位

这段时间,一直有个很头疼的问题...

我这边有一个系统服务,每分钟运行一次(读取下面的表,如果isDeal为0,则取出这些数据,接着往下跑.).



可有些时候,会报"Index was outside the bounds of the array."

不知是我的代码哪里出现问题了(应该是跟多线程有关系).下面是我的代码,麻烦帮忙看下.thanks.




/// <summary>
/// step 1:读取Addon数据库中的MaterialCardMonitor_1表数据
/// step 2:根据分部分配批号读取该批号下的所有卡号记录
/// </summary>
class SegmentAssignCard_Step_1 : ITask
{

private IOrganizationService service;
private readonly int threadCount = 5;//指定开启的线程数


public SegmentAssignCard_Step_1()
{
Utility _conn = new Utility();
CrmConnection crmConn = CrmConnection.Parse(_conn.GetConnectionString(1));
service = new OrganizationService(crmConn);
}

/// <summary>
///
/// </summary>
public void Execute()
{

try
{
#region step 1:读取Addon数据库中的MaterialCardMonitor_1表数据


string strSql_1 = @" SELECT TOP 1 [name]
,[new_segmentassigncardid]
,[new_businessunitid]
,[teamid]
,[new_areanumber]
,[new_beginnumber]
,[new_endnumber]
FROM [MaterialCardMonitor_1] WHERE [isDeal]=0 ORDER BY createdon DESC ";

DataTable dt_1 = ExecuteDataTable(strSql_1, true);

if (dt_1 == null || dt_1.Rows.Count < 1) return;

string strName = dt_1.Rows[0]["name"].ToString();//分部分配批号
string new_areanumber = dt_1.Rows[0]["new_areanumber"].ToString();//分部区号
string new_beginnumber = dt_1.Rows[0]["new_beginnumber"].ToString();//起始卡号
string new_endnumber = dt_1.Rows[0]["new_endnumber"].ToString();//结束卡号
Guid teamId = Guid.Parse(dt_1.Rows[0]["teamid"].ToString());//团队ID
Guid new_segmentassigncardid = Guid.Parse(dt_1.Rows[0]["new_segmentassigncardid"].ToString());//分部分配批次ID
Guid new_businessunitid = Guid.Parse(dt_1.Rows[0]["new_businessunitid"].ToString());//分配门店ID

string strSql_1_1 = " UPDATE MaterialCardMonitor_1 SET [isDeal]=1 WHERE [name]= '" + strName + "' ";

ExecuteSql(strSql_1_1, true);

#endregion

#region step 2:根据分部分配批号读取该批号下的所有卡号记录

string strSql_2 = string.Format(@"SELECT COUNT(1) FROM new_materialcardrecordExtensionBase WITH(NOLOCK)
WHERE new_businessunit1id = '{0}' AND new_statecode = 100000002
AND new_name BETWEEN '{1}{2}' AND '{1}{3}'",
new_businessunitid, new_areanumber.Trim(), new_beginnumber.Trim(), new_endnumber.Trim());

object objCount = ExecuteScalar(strSql_2, false);

int iCount = (objCount != DBNull.Value && objCount != null) ? Convert.ToInt32(objCount) : 0;

if (iCount == 0) return;

for (int i = 1; i <= threadCount; i++)
{
string strSql_3 = string.Format(@"SELECT TOP {2} *
FROM
(
SELECT ROW_NUMBER() OVER (ORDER BY new_materialcardrecordid) AS RowNumber,new_materialcardrecordid,new_statecode
FROM new_materialcardrecord WITH(NOLOCK)
WHERE new_businessunit1id = '{1}' AND new_statecode = 100000002
AND new_name BETWEEN '{3}{4}' AND '{3}{5}'
) A
WHERE RowNumber > {2}*({0}-1)", i, new_businessunitid, Math.Ceiling((double)iCount / (double)threadCount),
new_areanumber.Trim(), new_beginnumber.Trim(), new_endnumber.Trim());

DataTable dt_2 = ExecuteDataTable(strSql_3, false);

if (dt_2 != null && dt_2.Rows.Count > 0)
{

List<MaterialcardKeyValue> mkvList = new List<MaterialcardKeyValue>();

foreach (DataRow item in dt_2.Rows)
{
MaterialcardKeyValue mkv = new MaterialcardKeyValue();
mkv.id = Guid.Parse(item["new_materialcardrecordid"].ToString());
mkv.statecode = Convert.ToInt32(item["new_statecode"]);
mkvList.Add(mkv);

}

Thread thread = new Thread(new ParameterizedThreadStart(new SegmentAssignCard_Step_2().Execute));
Parameters obj = new Parameters();
obj.rowIndex = i;
obj.teamId = teamId;
obj.new_segmentassigncardid = new_segmentassigncardid;
obj.new_businessunit2id = new_businessunitid;
obj.mkvList = mkvList;
thread.Start(obj);
}


}

#endregion

}
catch (Exception ex)
{
Utility.LogError(ex.Message);
}
}

#region 执行SQL语句,返回受影响的行数

/// <summary>
///执行SQL语句,返回受影响的行数
/// </summary>
/// <param name="sqlSentence"></param>
/// <returns></returns>
public int ExecuteSql(string sqlSentence, bool isAddon)
{
Utility _conn = new Utility();

SqlConnection conn = new SqlConnection(_conn.GetConnectionString(isAddon ? 3 : 2));

SqlCommand cmd = new SqlCommand(sqlSentence, conn);

int result = 0;

try
{
conn.Open();
result = cmd.ExecuteNonQuery();
}
catch (Exception e)
{
throw new Exception(e.Message);
}
finally
{
conn.Close();
}

return result;

}


#endregion

#region .执行SQL语句,返回结果集
/// <summary>
/// 执行SQL语句,返回结果集
/// </summary>
/// <param name="strQuery"></param>
/// <returns></returns>
private DataTable ExecuteDataTable(string strQuery, bool isAddon)
{
Utility _conn = new Utility();

SqlConnection conn = new SqlConnection(_conn.GetConnectionString(isAddon ? 3 : 2));

SqlDataAdapter dAdapter = new SqlDataAdapter(strQuery, conn);
DataTable dt = new DataTable();

try
{
conn.Open();
dAdapter.Fill(dt);
}
catch (Exception ex)
{
Utility.LogError(string.Format("{0} 【总部分配卡号--设置负责人】系统服务执行SQL发生异常,异常信息:{1}。"
, DateTime.Now, ex.Message));
}
finally
{
conn.Close();
}

return dt;
}
#endregion

#region 执行SQL语句,返回首行首列

/// <summary>
///执行SQL语句,返回首行首列
/// </summary>
/// <param name="sqlSentence"></param>
/// <returns></returns>
protected object ExecuteScalar(string sqlSentence, bool isAddon)
{
Utility _conn = new Utility();

SqlConnection conn = new SqlConnection(_conn.GetConnectionString(isAddon ? 3 : 2));

SqlCommand cmd = new SqlCommand(sqlSentence, conn);

object obj = null;

try
{
conn.Open();
obj = cmd.ExecuteScalar();
}
catch (Exception e)
{
throw new Exception(e.Message);
}
finally
{
conn.Close();
}

return obj;

}

#endregion

#region .获取DataRow属性值
private T GetDrValue<T>(System.Data.DataRow dr, string attributeName, T defaultValue)
{
if (dr[attributeName] == null || dr[attributeName] == DBNull.Value)
return defaultValue;

return (T)dr[attributeName];
}
#endregion

}


...全文
2672 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
你要直接给出具体调试信息。如果别人花10秒钟、你花两整天,才能找到出错的语句和变量值(因为一个语句往往是执行几百遍之后才偶然出错的,此时需要分析变量值),那么还是要先学会如何在一秒钟内看到异常语句的基本调试方法。
  • 打赏
  • 举报
回复
引用 6 楼 zhuoweizhao 的回复:
发生在SegmentAssignCard_Step_2.cs C# code?123456789101112131415161718Parameters parameter = (Parameters)obj; List<Materialcar……
你要指出是哪一行、那一个变量,当调试器因异常而中断在这行上的同时,你调试出此变量的值是什么。这是最浅的要求,还没有要求你此时去使用调用堆栈来查找之前的程序进入接口时的变量值分析呢。 实际上一看你写一堆try....catch就知道你没有自己动手进行调试的能力了。如果会用调试器的人,不会写这些try....catch。
Castiel丶Luo 2013-04-20
  • 打赏
  • 举报
回复
引用 6 楼 zhuoweizhao 的回复:
引用 4 楼 luochanghua 的回复:先找到错发生在哪 这么长..怎么看 发生在SegmentAssignCard_Step_2.cs C# code?123456789101112131415161718Parameters parameter = (Parameters)obj; List<Materialcar……
这里没错 不是这里 跟踪到下一层
Chobohoo 2013-04-19
  • 打赏
  • 举报
回复
引用 8 楼 Ice_flybird 的回复:
应该是多线程的原因吧, 多线程调用一个List是不安全的. 要用lock锁定,然后再填充内容。 Lock(mkvList) { ...... }
我是每个线程里都重新去new了一个 List<MaterialcardKeyValue> mkvList 这样也需要Lock ?
Ice_flybird 2013-04-19
  • 打赏
  • 举报
回复
应该是多线程的原因吧, 多线程调用一个List是不安全的. 要用lock锁定,然后再填充内容。 Lock(mkvList) { ...... }
Chobohoo 2013-04-19
  • 打赏
  • 举报
回复
引用 5 楼 gxingmin 的回复:
把错误的堆栈(即ex.StackTrace)也输出来看看到底是哪行代码出错了, 你这么多代码人家怎么看啊
详见6#
Chobohoo 2013-04-19
  • 打赏
  • 举报
回复
引用 4 楼 luochanghua 的回复:
先找到错发生在哪 这么长..怎么看
发生在SegmentAssignCard_Step_2.cs
Parameters parameter = (Parameters)obj;
 
                List<MaterialcardKeyValue> mkvList = parameter.mkvList;
 
                foreach (MaterialcardKeyValue item in mkvList)
                {
                    if (item.statecode==100000002)
                    {
                        //修改指定卡号记录的负责人为某一团队ID
                        AssignRequest assign = new AssignRequest
                        {
                            Assignee = new EntityReference("team", parameter.teamId),
                            Target = new EntityReference("new_materialcardrecord", item.id)
                        };
 
                        service.Execute(assign);
                    }
                }
这里!
gxingmin 2013-04-19
  • 打赏
  • 举报
回复
把错误的堆栈(即ex.StackTrace)也输出来看看到底是哪行代码出错了, 你这么多代码人家怎么看啊
Castiel丶Luo 2013-04-19
  • 打赏
  • 举报
回复
先找到错发生在哪 这么长..怎么看
Chobohoo 2013-04-19
  • 打赏
  • 举报
回复
引用 2 楼 gxingmin 的回复:
索引超出数组范围了
这个错误看得懂,就是不清楚,怎么会报这样的错误.
gxingmin 2013-04-19
  • 打赏
  • 举报
回复
索引超出数组范围了
Chobohoo 2013-04-19
  • 打赏
  • 举报
回复

/// <summary>
    /// 为SegmentAssignCard_Step_1.cs提供单独的类方法,已便进行多线程的调用
    /// </summary>
    public class SegmentAssignCard_Step_2
    {

        private IOrganizationService service;

        public void Execute(object obj)
        {

            try
            {

                try
                {
                    Utility _conn = new Utility();
                    CrmConnection crmConn = CrmConnection.Parse(_conn.GetConnectionString(1));
                    service = new OrganizationService(crmConn);
                }
                catch (Exception eex)
                {
                    Utility.LogError("分部分配物料卡时创建连接时出现异常,异常原因{" + eex.Message + "}");
                    return;
                }

                if (obj == null)
                {
                    Utility.LogError("分部分配物料卡[获取卡号记录Object]时出现异常,异常原因{obj}为null!!");
                    return;
                }

                Parameters parameter = (Parameters)obj;

                List<MaterialcardKeyValue> mkvList = parameter.mkvList;

                foreach (MaterialcardKeyValue item in mkvList)
                {
                    if (item.statecode==100000002)
                    {
                        //修改指定卡号记录的负责人为某一团队ID
                        AssignRequest assign = new AssignRequest
                        {
                            Assignee = new EntityReference("team", parameter.teamId),
                            Target = new EntityReference("new_materialcardrecord", item.id)
                        };

                        service.Execute(assign);
                    }
                }
            }
            catch (Exception ex)
            {
                Utility.LogError("分部分配物料卡至卖场出错,出错原因:" + ex.Message);

                try
                {
                    Parameters parameter = (Parameters)obj;
                    Thread thread = new Thread(new ParameterizedThreadStart(new SegmentAssignCard_Step_2().Execute));
                    thread.Start(obj);
                    Utility.LogInfo("分部分配物料卡至卖场出错后线程已重新开启");
                }
                catch (Exception eex)
                {
                    Utility.LogError("分部分配物料卡至卖场出错后线程重启后再次出错,出错原因:" + eex.Message);
                }
            }
        }

        #region 执行SQL语句,返回受影响的行数

        /// <summary>
        ///执行SQL语句,返回受影响的行数
        /// </summary>
        /// <param name="sqlSentence"></param>
        /// <returns></returns>
        public int ExecuteSql(string sqlSentence, bool isAddon)
        {
            Utility _conn = new Utility();

            SqlConnection conn = new SqlConnection(_conn.GetConnectionString(isAddon ? 3 : 2));

            SqlCommand cmd = new SqlCommand(sqlSentence, conn);

            int result = 0;

            try
            {
                conn.Open();
                result = cmd.ExecuteNonQuery();
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
            finally
            {
                conn.Close();
            }

            return result;

        }


        #endregion

    }
下面是Parameters类跟MaterialcardKeyValue类

 public class Parameters
    {
        /// <summary>
        /// 行数
        /// </summary>
        public int rowIndex { get; set; }
        /// <summary>
        /// 数据表
        /// </summary>
        public DataTable dt { get; set; }

        /// <summary>
        /// 用于存放【卡号记录ID】【卡号记录状态】的集合
        /// </summary>
        public List<MaterialcardKeyValue> mkvList { get; set; }

        /// <summary>
        /// 用户ID(负责人)
        /// </summary>
        public Guid systemuserId { get; set; }
        /// <summary>
        /// 团队ID(负责人)
        /// </summary>
        public Guid teamId { get; set; }
        /// <summary>
        /// 分部分配卡号ID
        /// </summary>
        public Guid new_segmentassigncardid { get; set; }
        /// <summary>
        /// 卖场ID
        /// </summary>
        public Guid new_businessunit2id { get; set; }


    }

    public class MaterialcardKeyValue
    {
        /// <summary>
        /// 卡号记录ID
        /// </summary>
        public Guid id { get; set; }
        /// <summary>
        /// 卡号记录状态
        /// </summary>
        public int statecode { get; set; }
    }
Git-2.21.0-64 for windows Git 2.23 Release Notes ====================== Updates since v2.22 ------------------- Backward compatibility note * The "--base" option of "format-patch" computed the patch-ids for prerequisite patches in an unstable way, which has been updated to compute in a way that is compatible with "git patch-id --stable". * The "git log" command by default behaves as if the --mailmap option was given. UI, Workflows & Features * The "git fast-export/import" pair has been taught to handle commits with log messages in encoding other than UTF-8 better. * In recent versions of Git, per-worktree refs are exposed in refs/worktrees// hierarchy, which means that worktree names must be a valid refname component. The code now sanitizes the names given to worktrees, to make sure these refs are well-formed. * "git merge" learned "--quit" option that cleans up the in-progress merge while leaving the working tree and the index still in a mess. * "git format-patch" learns a configuration to set the default for its --notes= option. * The code to show args with potential typo that cannot be interpreted as a commit-ish has been improved. * "git clone --recurse-submodules" learned to set up the submodules to ignore commit object names recorded in the superproject gitlink and instead use the commits that happen to be at the tip of the remote-tracking branches from the get-go, by passing the new "--remote-submodules" option. * The pattern "git diff/grep" use to extract funcname and words boundary for Matlab has been extend to cover Octave, which is more or less equivalent. * "git help git" was hard to discover (well, at least for some people). * The pattern "git diff/grep" use to extract funcname and words boundary for Rust has been added. * "git status" can be told a non-standard default value for the "--[no-]ahead-behind" option with a new configuration variable status.aheadBehind. * "git fetch" and "git pull" reports when a fetch results in non-fast-forward updates to let the user notice unusual situation. The commands learned "--no-show-forced-updates" option to disable this safety feature. * Two new commands "git switch" and "git restore" are introduced to split "checking out a branch to work on advancing its history" and "checking out paths out of the index and/or a tree-ish to work on advancing the current history" out of the single "git checkout" command. * "git branch --list" learned to always output the detached HEAD as the first item (when the HEAD is detached, of course), regardless of the locale. * The conditional inclusion mechanism learned to base the choice on the branch the HEAD currently is on. * "git rev-list --objects" learned the "--no-object-names" option to squelch the path to the object that is used as a grouping hint for pack-objects. * A new tag.gpgSign configuration variable turns "git tag -a" into "git tag -s". * "git multi-pack-index" learned expire and repack subcommands. * "git blame" learned to "ignore" commits in the history, whose effects (as well as their presence) get ignored. * "git cherry-pick/revert" learned a new "--skip" action. * The tips of refs from the alternate object store can be used as starting point for reachability computation now. * Extra blank lines in "git status" output have been reduced. * The commits in a repository can be described by multiple commit-graph files now, which allows the commit-graph files to be updated incrementally. * "git range-diff" output has been tweaked for easier identification of which part of what file the patch shown is about. Performance, Internal Implementation, Development Support etc. * Update supporting parts of "git rebase" to remove code that should no longer be used. * Developer support to emulate unsatisfied prerequisites in tests to ensure that the remainder of the tests still succeeds when tests with prerequisites are skipped. * "git update-server-info" learned not to rewrite the file with the same contents. * The way of specifying the path to find dynamic libraries at runtime has been simplified. The old default to pass -R/path/to/dir has been replaced with the new default to pass -Wl,-rpath,/path/to/dir, which is the more recent GCC uses. Those who need to build with an old GCC can still use "CC_LD_DYNPATH=-R" * Prepare use of reachability index in topological walker that works on a range (A..B). * A new tutorial targeting specifically aspiring git-core developers has been added. * Auto-detect how to tell HP-UX aCC where to use dynamically linked libraries from at runtime. * "git mergetool" and its tests now spawn fewer subprocesses. * Dev support update to help tracing out tests. * Support to build with MSVC has been updated. * "git fetch" that grabs from a group of remotes learned to run the auto-gc only once at the very end. * A handful of Windows build patches have been upstreamed. * The code to read state files used by the sequencer machinery for "git status" has been made more robust against a corrupt or stale state files. * "git for-each-ref" with multiple patterns have been optimized. * The tree-walk API learned to pass an in-core repository instance throughout more codepaths. * When one step in multi step cherry-pick or revert is reset or committed, the command line prompt script failed to notice the current status, which has been improved. * Many GIT_TEST_* environment variables control various aspects of how our tests are run, but a few followed "non-empty is true, empty or unset is false" while others followed the usual "there are a few ways to spell true, like yes, on, etc., and also ways to spell false, like no, off, etc." convention. * Adjust the dir-iterator API and apply it to the local clone optimization codepath. * We have been trying out a few language features outside c89; the coding guidelines document did not talk about them and instead had a blanket ban against them. * A test helper has been introduced to optimize preparation of test repositories with many simple commits, and a handful of test scripts have been updated to use it. Fixes since v2.22 ----------------- * A relative pathname given to "git init --template= " ought to be relative to the directory "git init" gets invoked in, but it instead was made relative to the repository, which has been corrected. * "git worktree add" used to fail when another worktree connected to the same repository was corrupt, which has been corrected. * The ownership rule for the file descriptor to fast-import remote backend was mixed up, leading to an unrelated file descriptor getting closed, which has been fixed. * A "merge -c" instruction during "git rebase --rebase-merges" should give the user a chance to edit the log message, even when there is otherwise no need to create a new merge and replace the existing one (i.e. fast-forward instead), but did not. Which has been corrected. * Code cleanup and futureproof. * More parameter validation. * "git update-server-info" used to leave stale packfiles in its output, which has been corrected. * The server side support for "git fetch" used to show incorrect value for the HEAD symbolic ref when the namespace feature is in use, which has been corrected. * "git am -i --resolved" segfaulted after trying to see a commit as if it were a tree, which has been corrected. * "git bundle verify" needs to see if prerequisite objects exist in the receiving repository, but the command did not check if we are in a repository upfront, which has been corrected. * "git merge --squash" is designed to update the working tree and the index without creating the commit, and this cannot be countermanded by adding the "--commit" option; the command now refuses to work when both options are given. * The data collected by fsmonitor was not properly written back to the on-disk index file, breaking t7519 tests occasionally, which has been corrected. * Update to Unicode 12.1 width table. * The command line to invoke a "git cat-file" command from inside "git p4" was not properly quoted to protect a caret and running a broken command on Windows, which has been corrected. * "git request-pull" learned to warn when the ref we ask them to pull from in the local repository and in the published repository are different. * When creating a partial clone, the object filtering criteria is recorded for the origin of the clone, but this incorrectly used a hardcoded name "origin" to name that remote; it has been corrected to honor the "--origin " option. * "git fetch" into a lazy clone forgot to fetch base objects that are necessary to complete delta in a thin packfile, which has been corrected. * The filter_data used in the list-objects-filter (which manages a lazily sparse clone repository) did not use the dynamic array API correctly---'nr' is supposed to point at one past the last element of the array in use. This has been corrected. * The description about slashes in gitignore patterns (used to indicate things like "anchored to this level only" and "only matches directories") has been revamped. * The URL decoding code has been updated to avoid going past the end of the string while parsing %-- sequence. * The list of for-each like macros used by clang-format has been updated. * "git branch --list" learned to show branches that are checked out in other worktrees connected to the same repository prefixed with '+', similar to the way the currently checked out branch is shown with '*' in front. (merge 6e9381469e nb/branch-show-other-worktrees-head later to maint). * Code restructuring during 2.20 period broke fetching tags via "import" based transports. * The commit-graph file is now part of the "files that the runtime may keep open file descriptors on, all of which would need to be closed when done with the object store", and the file descriptor to an existing commit-graph file now is closed before "gc" finalizes a new instance to replace it. * "git checkout -p" needs to selectively apply a patch in reverse, which did not work well. * Code clean-up to avoid signed integer wraparounds during binary search. * "git interpret-trailers" always treated '#' as the comment character, regardless of core.commentChar setting, which has been corrected. * "git stash show 23" used to work, but no more after getting rewritten in C; this regression has been corrected. * "git rebase --abort" used to leave refs/rewritten/ when concluding "git rebase -r", which has been corrected. * An incorrect list of options was cached after command line completion failed (e.g. trying to complete a command that requires a repository outside one), which has been corrected. * The code to parse scaled numbers out of configuration files has been made more robust and also easier to follow. * The codepath to compute delta islands used to spew progress output without giving the callers any way to squelch it, which has been fixed. * Protocol capabilities that go over wire should never be translated, but it was incorrectly marked for translation, which has been corrected. The output of protocol capabilities for debugging has been tweaked a bit. * Use "Erase in Line" CSI sequence that is already used in the editor support to clear cruft in the progress output. * "git submodule foreach" did not protect command line options passed to the command to be run in each submodule correctly, when the "--recursive" option was in use. * The configuration variable rebase.rescheduleFailedExec should be effective only while running an interactive rebase and should not affect anything when running a non-interactive one, which was not the case. This has been corrected. * The "git clone" documentation refers to command line options in its description in the short form; they have been replaced with long forms to make them more recognisable. * Generation of pack bitmaps are now disabled when .keep files exist, as these are mutually exclusive features. (merge 7328482253 ew/repack-with-bitmaps-by-default later to maint). * "git rm" to resolve a conflicted path leaked an internal message "needs merge" before actually removing the path, which was confusing. This has been corrected. * "git stash --keep-index" did not work correctly on paths that have been removed, which has been fixed. (merge b932f6a5e8 tg/stash-keep-index-with-removed-paths later to maint). * Window 7 update ;-) * A codepath that reads from GPG for signed object verification read past the end of allocated buffer, which has been fixed. * "git clean" silently skipped a path when it cannot lstat() it; now it gives a warning. * "git push --atomic" that goes over the transport-helper (namely, the smart http transport) failed to prevent refs to be pushed when it can locally tell that one of the ref update will fail without having to consult the other end, which has been corrected. * The internal diff machinery can be made to read out of bounds while looking for --function-context line in a corner case, which has been corrected. (merge b777f3fd61 jk/xdiff-clamp-funcname-context-index later to maint). * Other code cleanup, docfix, build fix, etc. (merge fbec05c210 cc/test-oidmap later to maint). (merge 7a06fb038c jk/no-system-includes-in-dot-c later to maint). (merge 81ed2b405c cb/xdiff-no-system-includes-in-dot-c later to maint). (merge d61e6ce1dd sg/fsck-config-in-doc later to maint).

111,112

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧