本文介绍了被停用的激活上下文不是最近激活的激活上下文。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 你好, 我得到了第一次机会异常激活上下文是 去激活不是最近激活的。之后又发生了另一个 异常 中出现未处理的类型 ''System.Runtime.InteropServices.SEHException'' system.windows.forms.dll"。 我正在做的是从VB.Net中调用一个C#方法(在类库中) DragDrop事件。 我尝试过使用代理,但这并没有什么区别。它成功执行了 操作,但是当进入主要的 消息循环时会发生异常。 任何想法会发生什么关于? 问候 Simon Jefferies 工具程序员,Headfirst Productions mailto:si * ***@headfirst.co.uk www.callofcthulhu.com www.deadlandsgame.com -Hello,I am getting a First-chance exception "The activation context beingdeactivated is not the most recently activated one." followed by anotherexception straight afterwards "An unhandled exception of type''System.Runtime.InteropServices.SEHException'' occurred insystem.windows.forms.dll".What I''m doing is calling a C# methods (in a class library) from VB.Net in aDragDrop event.I''ve tried using delegates but this made no difference. It performs theoperation successfully, but the exceptions occur when enters the mainmessage loop.Any ideas what is going on?RegardsSimon JefferiesTools Programmer, Headfirst Productionsmailto:si****@headfirst.co.uk www.callofcthulhu.com www.deadlandsgame.com-推荐答案 这篇关于被停用的激活上下文不是最近激活的激活上下文。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-19 10:27