问题标签 [targetinvocationexception]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
71 问题
0
投票
0
回答
74
浏览
c# - BackgroundWorker ReportProgress 抛出 TargetInvocationException
我正在尝试创建一个工具来从多个 .txt 文件中搜索数据。我想为用户创建一个进度条来跟踪工作的进度。这就是我得到的
当我添加行时:
它抛出异常:
我尝试使用 Ivoke,但它仍然抛出此异常:
你能告诉我哪里错了吗?