- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
伙计们!
我的.net应用程序有问题。当我尝试在程序中打印时,它会崩溃崩溃
与任何错误消息。我从Windows中的事件查看器中获得的有关错误的信息。有人能帮我吗?但是在另一台计算机上它可以正常工作。我的猜测是带有安全策略的东西。此外,程序崩溃,但打印仍然可以正常工作。
以下是信息:
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 2/25/2011
Time: 8:56:47 AM
User: N/A
Computer: PROTO
Description:
EventType clr20r3, P1 invoice browser.exe, P2 1.0.0.0, P3 4d67b263, P4 system.windows.forms, P5 2.0.0.0, P6 4333aefa, P7 1508, P8 17, P9 system.invalidoperationexception, P10 NIL.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 63 00 6c 00 72 00 32 00 c.l.r.2.
0008: 30 00 72 00 33 00 2c 00 0.r.3.,.
0010: 20 00 69 00 6e 00 76 00 .i.n.v.
0018: 6f 00 69 00 63 00 65 00 o.i.c.e.
0020: 20 00 62 00 72 00 6f 00 .b.r.o.
0028: 77 00 73 00 65 00 72 00 w.s.e.r.
0030: 2e 00 65 00 78 00 65 00 ..e.x.e.
0038: 2c 00 20 00 31 00 2e 00 ,. .1...
0040: 30 00 2e 00 30 00 2e 00 0...0...
0048: 30 00 2c 00 20 00 34 00 0.,. .4.
0050: 64 00 36 00 37 00 62 00 d.6.7.b.
0058: 32 00 36 00 33 00 2c 00 2.6.3.,.
0060: 20 00 73 00 79 00 73 00 .s.y.s.
0068: 74 00 65 00 6d 00 2e 00 t.e.m...
0070: 77 00 69 00 6e 00 64 00 w.i.n.d.
0078: 6f 00 77 00 73 00 2e 00 o.w.s...
0080: 66 00 6f 00 72 00 6d 00 f.o.r.m.
0088: 73 00 2c 00 20 00 32 00 s.,. .2.
0090: 2e 00 30 00 2e 00 30 00 ..0...0.
0098: 2e 00 30 00 2c 00 20 00 ..0.,. .
00a0: 34 00 33 00 33 00 33 00 4.3.3.3.
00a8: 61 00 65 00 66 00 61 00 a.e.f.a.
00b0: 2c 00 20 00 31 00 35 00 ,. .1.5.
00b8: 30 00 38 00 2c 00 20 00 0.8.,. .
00c0: 31 00 37 00 2c 00 20 00 1.7.,. .
00c8: 73 00 79 00 73 00 74 00 s.y.s.t.
00d0: 65 00 6d 00 2e 00 69 00 e.m...i.
00d8: 6e 00 76 00 61 00 6c 00 n.v.a.l.
00e0: 69 00 64 00 6f 00 70 00 i.d.o.p.
00e8: 65 00 72 00 61 00 74 00 e.r.a.t.
00f0: 69 00 6f 00 6e 00 65 00 i.o.n.e.
00f8: 78 00 63 00 65 00 70 00 x.c.e.p.
0100: 74 00 69 00 6f 00 6e 00 t.i.o.n.
0108: 20 00 4e 00 49 00 4c 00 .N.I.L.
0110: 0d 00 0a 00 ....
最佳答案
尝试在打印块周围放置异常处理;引发System.InvalidOperationException,并且如果您将其捕获,则应该能够获取更多信息(InnerException等)。
关于.net - BeginInvoke-EndInvoke问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5118129/
在网页上,我调用不允许我以编程方式设置超时的第三方。我调用 BeginInvoke 并使用 AsyncWaitHandle.WaitOne 等待指定的时间量。 如果调用超时,我会继续并忘记我开始的线程
一个异步问题: 我在互联网上阅读了大量支持和反对 Delegate.EndInvoke() 可选的文章。这些文章大多数都是 4-5 年前的文章。很多死链接。 任何人都可以解释一下,在 .NET 2.0
我有一个正常的方法 public List FindNearByCity(string targetCity) { // ... some implementation } 我想为这个方法添加异步支持
我不会做很多 Windows GUI 编程,所以对于比我更熟悉 WinForms 的人来说,这可能都是常识。不幸的是,我今天在调试期间遇到了任何资源来解释这个问题。 如果我们在异步委托(delegat
我读过几个论坛,甚至一两个stackoverflow问题都说在使用Delegate.BeginInvoke时Delegate.EndInvoke是必要的。我读过的许多谈论使用 BeginInvoke
所以 C#/.NET 问题。在使用 .BeginInvoke 异步调用某些方法时,是否总是需要调用 .EndInvoke?我在某处读到它是强制性的,但问题是 .EndInvoke 会阻止执行吗?有某种
我有一个显示实时值的客户端应用程序。这些值通过 DDE-Advise 提供。这些实时值是数控机床的移动轴。因此,通过此 DdeClientAdvise-Method,每分钟大约有 100 个建议。 当
在 BeginInvoke 之后的回调中,AsyncResult.AsyncDelegate 需要转换为正确的类型,然后才能访问 EndInvoke。 但是我正在使用泛型,那么我是否需要为 N 个泛化
以这种方式为 MainForm 线程调用委托(delegate)是一种好习惯吗?: Txt.MainForm.EndInvoke( Txt.MainForm.BeginInvoke( new
这个问题在这里已经有了答案: 关闭 11 年前。 Possible Duplicates: Must every BeginInvoke be followed by an EndInvoke? I
关于是否每个 BeginInvoke() 都必须与 EndInvoke() 匹配,我读过相互矛盾的意见。是否存在与不调用 EndInvoke() 相关的任何泄漏或其他问题? 最佳答案 Delegate
我有以下测试 [Test] public void aaa() { CallContext.LogicalSetData("aa", "1"); Action parallelMeth
我正在通过 ASP.net 自下而上地工作,并且我正在设置一个老式的委托(delegate)模式: public delegate void ProcessRequestDelegate(Ht
我正在通过 ASP.net 自下而上地工作,并且我正在设置一个老式的委托(delegate)模式: public delegate void ProcessRequestDelegate(Ht
这个问题在这里已经有了答案: 关闭 11 年前。 Possible Duplicate: Why does asynchronous delegate method require calling
试图围绕 Tasks 类,更具体地说,Task.Factory.FromAsync 方法。 目前在我的代码中我正在做这样的事情: var handler = MyEvent; if (handler
我的 .aspx 文件中的这个方法... private static string GetPageAsString(string address) {
以下类为例。 public class A { // ... void Foo(S myStruct){...} } public class B { public A test;
为什么委托(delegate)需要在方法触发之前调用 EndInvoke?如果我需要调用 EndInvoke(它会阻塞线程)那么它不是真正的异步调用吗? 这是我要运行的代码。 class Progra
我想知道 BeginInvoke/EndInvoke 方法是如何在委托(delegate)上实现的。我知道它们是由编译器自动生成的,有点特殊,所以反汇编程序无法处理它们。但最终是代码被执行了,对吧?出
我是一名优秀的程序员,十分优秀!