vs2015与matlab混合编程,出现 Unhandled C++ exception detected at 错误
MATLAB 2015b startup error Unhandled C++ exception
Asked by William Fuller on 13 Oct 2015
出现问题的原因是:在matlab 里矩阵(256,256)是从1到256,而vs里是从0-255.
Full message here,
"MATLAB crash file:C:\Users\Will\AppData\Local\Temp\matlab_crash_dump.6488-1:
------------------------------------------------------------------------ Unhandled C++ exception detected at Tue Oct 13 15:55:22 2015 ------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled Crash Mode : continue (default) Default Encoding : windows-1252 Host Name : Will-PC MATLAB Architecture : win64 MATLAB Root : C:\Program Files\MATLAB\R2015b MATLAB Version : 8.6.0.267246 (R2015b) Operating System : Microsoft Windows 8.1 Processor ID : x86 Family 6 Model 60 Stepping 3, GenuineIntel Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode Window System : Version 6.3 (Build 9600)
Fault Count: 1
Abnormal termination: Unhandled C++ exception
Register State (from fault): RAX = 000000000429dab8 RBX = 00000000fd8aa488 RCX = 000000001626f5b0 RDX = 0000000000000001 RSP = 000000001626f9c0 RBP = 000000001626fb00 RSI = 0000000000000001 RDI = 000000000eef9fe0
R8 = 00000000fd754a66 R9 = 0000000000000000 R10 = 0000000000000000 R11 = 00000000041f0000 R12 = 0000000000000000 R13 = 000000001626fea0 R14 = 000000001626fe90 R15 = 0000000000000000
RIP = 00007ff8ccdf871c EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault): [ 0] 0x00007ff8ccdf871c C:\WINDOWS\system32\KERNELBASE.dll+00034588 RaiseException+00000108 [ 1] 0x00007ff8b798e92c C:\Program Files\MATLAB\R2015b\bin\win64\MSVCR110.dll+00387372 CxxThrowException+00000212 [ 2] 0x00000000fd61b2cc C:\Program Files\MATLAB\R2015b\bin\win64\mlutil.dll+00045772 cmddistributor::RuntimeException::rethrow+00000044 [ 3] 0x000000000b215a18 C:\Program Files\MATLAB\R2015b\bin\win64\MVMLocal.dll+00219672 mvm_server::inproc::LocalFactory::terminate+00090488 [ 4] 0x000000000b20fb28 C:\Program Files\MATLAB\R2015b\bin\win64\MVMLocal.dll+00195368 mvm_server::inproc::LocalFactory::terminate+00066184 [ 5] 0x000000000b21466f C:\Program Files\MATLAB\R2015b\bin\win64\MVMLocal.dll+00214639 mvm_server::inproc::LocalFactory::terminate+00085455 [ 6] 0x00007ff8bd796751 C:\Program Files\MATLAB\R2015b\bin\win64\boost_thread-vc110-mt-1_49.dll+00026449 boost::thread::swap+00000049 [ 7] 0x00007ff8b7953fef C:\Program Files\MATLAB\R2015b\bin\win64\MSVCR110.dll+00147439 beginthreadex+00000263 [ 8] 0x00007ff8b7954196 C:\Program Files\MATLAB\R2015b\bin\win64\MSVCR110.dll+00147862 endthreadex+00000402 [ 9] 0x00007ff8cd6713d2 C:\WINDOWS\system32\KERNEL32.DLL+00005074 BaseThreadInitThunk+00000034 [ 10] 0x00007ff8cfb75454 C:\WINDOWS\SYSTEM32\ntdll.dll+00087124 RtlU