尝试加载C ++ / CLI包装器DLL时崩溃

时间:2015-01-14 04:42:57

标签: c# c++-cli

我正在尝试使用C#应用程序中的C ++ / CLI包装器DLL。它首先提供AccessViolationExceptions,所以我尝试调试。我尝试过混合模式,仅限原生和几乎所有在线建议的选项。当(可能)加载了dll时,我仍然会遇到异常。堆栈跟踪看起来像这样(当将dll调试为仅本机时)。

>   ntdll.dll!RtlPcToFileHeader()  Unknown
    msvcr110_clr0400.dll!_CxxThrowException()  Unknown
    clr.dll!string "d:\\iso_whid\\amd64fre\\base\\ntos\\r"...()    Unknown
    msvcr110_clr0400.dll!_CallSettingFrame()   Unknown
    msvcr110_clr0400.dll!__CxxCallCatchBlock() Unknown
    ntdll.dll!RcFrameConsolidation()   Unknown
    clr.dll!MethodDesc::MakeJitWorker(class COR_ILMETHOD_DECODER *,unsigned long)   Unknown
    clr.dll!MethodDesc::DoPrestub(class MethodTable *)  Unknown
    clr.dll!PreStubWorker()    Unknown
    clr.dll!ThePreStub()   Unknown
    000007fe8351011b()  Unknown
    clr.dll!CallDescrWorkerInternal()  Unknown
    clr.dll!CallDescrWorkerWithHandler(struct CallDescrData *,int)  Unknown
    clr.dll!MethodDescCallSite::CallTargetWorker(unsigned __int64 const *)  Unknown
    clr.dll!RunMain(class MethodDesc *,short,int *,class PtrArray * *)  Unknown
    clr.dll!Assembly::ExecuteMainMethod(class PtrArray * *) Unknown
    clr.dll!SystemDomain::ExecuteMainMethod(struct HINSTANCE__ *,unsigned short *)  Unknown
    clr.dll!ExecuteEXE(struct HINSTANCE__ *)    Unknown
    clr.dll!_CorExeMainInternal()  Unknown
    clr.dll!_CorExeMain()  Unknown
    mscoreei.dll!_CorExeMain() Unknown
    mscoree.dll!_CorExeMain_Exported() Unknown
    kernel32.dll!BaseThreadInitThunk() Unknown
    ntdll.dll!RtlUserThreadStart() Unknown

对于如何进行的任何想法表示赞赏。

0 个答案:

没有答案