Hi, guys
I follow the tutorial to build a Directshow plugin with TemplateExtOpenCV, and everything is OK at the beginning. But when I create a cv::Mat instance and allocate memory for it, the application crashes at runtime and shows a dialog like this:
The debug log is
In __cxa_throw () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libopencv_core241.dll)
In libstdc++-6!__cxa_throw () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libstdc++-6.dll)
In libstdc++-6!__cxa_demangle () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libstdc++-6.dll)
In libgcc_s_dw2-1!_Unwind_RaiseException () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!_Unwind_FindEnclosingFunction () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!_Unwind_Find_FDE () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!_Unwind_Resume_or_Rethrow () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!_Unwind_Find_FDE () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!_Unwind_Resume_or_Rethrow () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!__emutls_get_address () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In msvcrt!malloc () (C:\Windows\syswow64\msvcrt.dll)
In libgcc_s_dw2-1!_Unwind_Resume_or_Rethrow () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!__emutls_get_address () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In msvcrt!malloc () (C:\Windows\syswow64\msvcrt.dll)
In libgcc_s_dw2-1!_Unwind_Resume_or_Rethrow () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In libgcc_s_dw2-1!__emutls_get_address () (D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libgcc_s_dw2-1.dll)
In msvcrt!free () (C:\Windows\syswow64\msvcrt.dll)
In msvcrt!memset () (C:\Windows\syswow64\msvcrt.dll)
In msvcrt!free () (C:\Windows\syswow64\msvcrt.dll)
In ntdll!LdrWx86FormatVirtualImage () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlEncodePointer () (C:\Windows\system32\ntdll.dll)
In ntdll!LdrWx86FormatVirtualImage () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlEncodePointer () (C:\Windows\system32\ntdll.dll)
In ntdll!TpDbgDumpHeapUsage () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlReAllocateHeap () (C:\Windows\system32\ntdll.dll)
In ntdll!TpQueryPoolStackInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!LdrWx86FormatVirtualImage () (C:\Windows\system32\ntdll.dll)
In ntdll!TpQueryPoolStackInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlInitializeContext () (C:\Windows\system32\ntdll.dll)
In ntdll!TpQueryPoolStackInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!LdrQueryProcessModuleInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!TpQueryPoolStackInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!TpReleaseTimer () (C:\Windows\system32\ntdll.dll)
In ntdll!LdrAddRefDll () (C:\Windows\system32\ntdll.dll)
In ntdll!TpReleaseTimer () (C:\Windows\system32\ntdll.dll)
In ntdll!TpDbgSetLogRoutine () (C:\Windows\system32\ntdll.dll)
In ntdll!TpQueryPoolStackInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlNtStatusToDosError () (C:\Windows\system32\ntdll.dll)
In wcspbrk () (C:\Windows\system32\ntdll.dll)
In ntdll!DbgUiStopDebugging () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlInitializeExceptionChain () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlpConvertCultureNamesToLCIDs () (C:\Windows\system32\ntdll.dll)
In wcspbrk () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlpConvertCultureNamesToLCIDs () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlFillMemory () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlFillMemoryUlong () (C:\Windows\system32\ntdll.dll)
In towlower () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlContractHashTable () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlFillMemoryUlong () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlSetCurrentTransaction () (C:\Windows\system32\ntdll.dll)
In wcspbrk () (C:\Windows\system32\ntdll.dll)
In ntdll!AlpcMaxAllowedMessageLength () (C:\Windows\system32\ntdll.dll)
In wcspbrk () (C:\Windows\system32\ntdll.dll)
In ntdll!TpQueryPoolStackInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlSecondsSince1980ToTime () (C:\Windows\system32\ntdll.dll)
In ntdll!TpQueryPoolStackInformation () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlValidateHeap () (C:\Windows\system32\ntdll.dll)
In ntdll!LdrWx86FormatVirtualImage () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlEncodePointer () (C:\Windows\system32\ntdll.dll)
In ntdll!LdrWx86FormatVirtualImage () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlEncodePointer () (C:\Windows\system32\ntdll.dll)
In ntdll!TpDbgDumpHeapUsage () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlReAllocateHeap () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlEncodePointer () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlInitializeContext () (C:\Windows\system32\ntdll.dll)
In ntdll!RtlUpcaseUnicodeChar () (C:\Windows\system32\ntdll.dll)
And also the system log:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-07-18T03:33:25.000000000Z" />
<EventRecordID>56082</EventRecordID>
<Channel>Application</Channel>
<Security />
</System>
- <EventData>
<Data>vvvv.exe</Data>
<Data>32.1.292.0</Data>
<Data>5399d7d4</Data>
<Data>libstdc++-6.dll</Data>
<Data>0.0.0.0</Data>
<Data>4bc96cae</Data>
<Data>40000015</Data>
<Data>0001bd1d</Data>
<Data>1e48</Data>
<Data>01cfa23903f8218c</Data>
<Data>D:\vvvv\vvvv_45beta32.1_x86\vvvv.exe</Data>
<Data>D:\vvvv\vvvv_45beta32.1_x86\lib\thirdparty\x86\opencv\libstdc++-6.dll</Data>
<Data>463096d0-0e2c-11e4-a5e3-08002700c447</Data>
</EventData>
</Event>
Any solution?