System.Runtime.InteropServices.COMException (0x8000FFFF): 灾难性故障 (异常来自 HRESULT:0x

问题描述

System.Runtime.InteropServices.COMException(0x8000FFFF):灾难性故障(异常来自HRESULT:0x8000FFFF(E_UNEXPECTED))在MS.Win32.UnsafeNativeMethods.ITfKeystrokeMgr.TestKeyDown(Int32wParam,Int32lParam,Boolean&eaten)在System.Windows.Input.TextServicesContext.Keystroke(Int32wParam,Int32lParam,KeyOpop)在System.Windows.Input.TextServicesManager.TextServicesKeystroke(TextServicesContextcontext,KeyEventArgskeyArgs,Booleantest)在System.Windows.Input.TextServicesManager.PreProcessInput(Objectsender,PreProcessInputEventArgse)在System.Windows.Input.InputManager.ProcessStagingArea()在System.Windows.Input.InputManager.ProcessInput(InputEventArgsinput)在System.Windows.Input.InputProviderSite.ReportInput(InputReportinputReport)在System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtrhwnd,InputModemode,Int32timestamp,RawKeyboardActionsactions,Int32scanCode,BooleanisExtendedKey,BooleanisSystemKey,Int32virtualKey)在System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG&msg,Boolean&handled)在System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG&msg,ModifierKeysmodifiers)在System.Windows.Interop.HwndSource.OnPreprocessMessage(Objectparam)在System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegatecallback,Objectargs,Int32numArgs)在MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Objectsource,Delegatemethod,Objectargs,Int32numArgs,DelegatecatchHandler)软件在运行的时候报了上述异常,请大家帮忙分析下看是什么原因

解决方案

解决方案二:
这是执行什么操作,哪段代码报的错?就这么点信息,看不出啥
解决方案三:
软件打的log日志目前只能看到这些堆栈信息,软件的代码太多了,异常信息中也没有报多少行出错了这个异常中能看出是什么原因造成的吗
解决方案四:
给这么多分就给个错误报告?只能靠猜的,你操作也没说,干嘛用也不说!系统版本?测试机型?TestKeyDown?键盘按键处理?如果是可能为按键错误?如果是笔记本检查下使用触摸按键后会不会报错,如果是自己的软件断点调试吧。
解决方案五:
楼主的问题解决了吗?

时间: 2024-09-20 01:14:45

System.Runtime.InteropServices.COMException (0x8000FFFF): 灾难性故障 (异常来自 HRESULT:0x的相关文章

System.Runtime.InteropServices.COMException (0x8004E00F): COM+ 无法与 Microsoft 分布式事务协调程序交谈 (异常来自 HRESU

错误信息: System.Runtime.InteropServices.COMException (0x8004E00F): COM+ 无法与 Microsoft 分布式事务协调程序交谈 (异常来自 HRESULT:0x8004E00F) 解决方案: 1.删除注册表中的键:     HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSDTC HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSDTC HKEY

关于c#生成word的问题 System.Runtime.InteropServices.COMException

问题描述 单个或者批量执行中的第一条没有问题,只要cShape用过一次就报错误.System.Runtime.InteropServices.COMException"类型的未经处理的异常在ModelPrint.exe中发生其他信息:对COM组件的调用返回了错误HRESULTE_FAIL.privatevoidquerendan_Click(boolprintModel,stringprintName,stringhetongId,stringhetongName,stringhetongCon

System.Runtime.InteropServices.COMException (0x80040154)错误

用windwos服务.owc.excle组件生成Excel文档,然后通过邮件自动发生给公司管理层,本来在本地测试.配置都正常,但是部署到Window 2003服务器上,服务启动后,日志文件记录程序出错,错误如下所示System.Runtime.InteropServices.COMException(0x80040154): 检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80040154.

System.Runtime.InteropServices.COMException (0x80004005): 对 COM 组件的调用返回了错误 HRESU

问题描述 在ESRI.ArcGIS.Display.ServerStyleGalleryClass.AddFile(Stringpath)在SWRLApp.MainFrm.CallRepresent2(IFeatureLayerfeatureLayer,IWorkspaceworkSpace)在SWRLApp.MainFrm.btOpen_Click(Objectsender,EventArgse)在DevComponents.DotNetBar.BaseItem.RaiseClick(eEve

System.Runtime.InteropServices.COMException的解决方法_实用技巧

完美解决"换另一台电脑上用VS2008继续开发web项目时出现 "System.Runtime.InteropServices.COMException",然后是加载不了项目." 只需要打开项目配置文件*.csproj,将<UseIIS>True</UseIIS> 改为 False,然后可以正常加载项目,接着重新配置为正常的IIS.

System.Runtime.InteropServices.COMException: 拒绝访问.

最近在做IIS管理软件的时候,在连接ADIL的时候老是出错,研究了半天没找出原因.因为先前一直用web来测试,一直没注意到权限问题,今天在msdn上刚刚找到原因,原来是IIS操作权限的问题,问题找到了,也好解决了.打开web.config然后在system.web节点中添加一属性 <identity impersonate="true" />OK 具体用法查看ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/cpgenref/ht

excel-C#导出EXCEL报异常来自 HRESULT:0x800AC472

问题描述 C#导出EXCEL报异常来自 HRESULT:0x800AC472 System.Runtime.InteropServices.COMException (0x800AC472): 异常来自 HRESULT:0x800AC472 解决方案 HRESULT: 0x800A03EC Windows Server 2008 C# 导出 ExcelC# 导出数据到Excel出现"异常来自 HRESULT:0x800A03EC"的错误

关于System.Runtime.InteropServices

问题描述 [System.Runtime.InteropServices.DllImportAttribute("kernel32.dll")]privatestaticexternboolWritePrivateProfileString(stringlpAppName,stringlpKeyName,stringlpString,stringlpFileName);这段代码总是提示错误错误:应输入}行:1错误:应输入类型.命名空间定义或文件尾行:1 解决方案 解决方案二:你这一句只

System.BadImageFormatException: 试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)

原文 System.BadImageFormatException: 试图加载格式不正确的程序. (异常来自 HRESULT:0x8007000B) 用C#调用DLL文件,运行后报错如下: System.BadImageFormatException: 试图加载格式不正确的程序. (异常来自 HRESULT:0x8007000B) 项目右键属性->项目设计器->生成->平台->把'默认设置(任何 CPU)'改为x86.因为'任何 CPU'的程序在64位的机器上就会用运行为64位,而