其中,垃圾回收是不可能的,因为一个线程停止在一个点ASP.NET无法计算前pression [英] ASP.NET Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible
问题描述
我有一个奇怪的问题,我得到一个对象从我的数据库,如:
I have a weird problem, I get an object from my DB, like this:
var user = BLL.Managers.Users.UserTmpManager.GetUser((int)customerID);
当我调试code和扩大用户对象,每个属性我看到的错误,因为我在这个主题的标题提及。什么原因呢?
when I debug that code, and expand the user object, for each property I see the error as I mentioned at this topic's title. What causes it ?
不幸的是,现在还没有得到解决,因为我认为在一开始..
unfortunately, it is still not being resolved, as I thought at the beginning..
推荐答案
我得到这个也一样,当我打一个NullReferenceException由第三方控制。
I got this too, when I hit a NullReferenceException from a 3rd party control.
在这个情况下,我发现,如果我设置断点之前我打的异常,我可以通过code的其余部分则单步没有看到这个问题。
In this one case, I found that if I set a breakpoint before I hit the exception, I could then single step through the rest of the code without seeing the problem.
不知道为什么,但是这为我工作 - 在这种情况下,至少
No idea why, but this worked for me - in this case at least.
这篇关于其中,垃圾回收是不可能的,因为一个线程停止在一个点ASP.NET无法计算前pression的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!