Data Stream SDK crashing when in external mode in simulink

when i try to use the Data Stream SDK from Vicon tracker 3.7, the program runs fine but crashes upon stopping in normal mode, and cannot be compiled in external mode. i need to have it run in external mode to have the software work with the other simulink programs it needs to be integrated with. this is my crash report
------------------------------------------------------------------------
Access violation detected at Thu Jun 13 13:24:00 2019
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : windows-1252
Deployed : false
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA Quadro P620 Version 26.21.14.3102
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 630 Version 25.20.100.6373
Host Name : DESKTOP-5NO8F0T
MATLAB Architecture : win64
MATLAB Entitlement ID: 688451
MATLAB Root : C:\Program Files\MATLAB\R2017a
MATLAB Version : 9.2.0.538062 (R2017a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 17134)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 00000000eabfe120 RBX = 00000000eac18e30
RCX = 000000000001ad00 RDX = 825cdbd4abf8ab07
RSP = 00000000043ede50 RBP = 00000000eac18e30
RSI = 0000000000000000 RDI = 0000000004540000
R8 = 00000000eac18e30 R9 = 0000000000008000
R10 = 0000000000151c50 R11 = 0000000220cae100
R12 = 0000000000000000 R13 = 0000000000000002
R14 = 00000000eac18e20 R15 = 5c92312900000001
RIP = 00007ffa7e646ee7 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffa7e646ee7 C:\WINDOWS\SYSTEM32\ntdll.dll+00093927 RtlFreeHeap+00000247
[ 1] 0x00007ffa3a6169d8 C:\Program Files\MATLAB\R2017a\bin\win64\MSVCR120.dll+00420312 free+00000028
[ 2] 0x00007ffa347c838a C:\Users\HuRo Lab\Desktop\external mode test\ViconDataStreamSDK_CPP.dll+00033674 ViconDataStreamSDK::CPP::RetimingClient::operator=+00000714
[ 3] 0x00007ffa535087ae C:\Users\HuRo Lab\Desktop\external mode test\TrackerMultiObject.mexw64+00034734 mdlTerminate+00000110
[ 4] 0x00000000d9c6b440 bin\win64\libmwsimulink.dll+17413184 slSetStateflowChartAccessesModelInfo+00157744
[ 5] 0x00000000d9c3e241 bin\win64\libmwsimulink.dll+17228353 slRegisterPrmAssoc+00217569
[ 6] 0x00000000d9c3e0ff bin\win64\libmwsimulink.dll+17228031 slRegisterPrmAssoc+00217247
[ 7] 0x00000000d9a3c2dd bin\win64\libmwsimulink.dll+15123165 BlockSetLocation+00002781
[ 8] 0x00000000d9324108 bin\win64\libmwsimulink.dll+07684360 PartitionSort::Partition::setLoopID+00005688
[ 9] 0x00000000d941436e bin\win64\libmwsimulink.dll+08668014 sl::InterfaceDisplayJob::createUnitsUpdateJob+00159534
[ 10] 0x00000000d92e4cb0 bin\win64\libmwsimulink.dll+07425200 slAccRegPrmChangeFcn+00262560
[ 11] 0x00000000d9412a09 bin\win64\libmwsimulink.dll+08661513 sl::InterfaceDisplayJob::createUnitsUpdateJob+00153033
[ 12] 0x00000000d9538d99 bin\win64\libmwsimulink.dll+09866649 sleGetRTWBlockForSLBlock+00300537
[ 13] 0x00000000d953e632 bin\win64\libmwsimulink.dll+09889330 sleGetRTWBlockForSLBlock+00323218
[ 14] 0x00000000d915be51 bin\win64\libmwsimulink.dll+05815889 sl::simharness::SlSigDescriptor::setUsed+00103057
[ 15] 0x0000000015abb0ee bin\win64\pgo\m_dispatcher.dll+00045294 mdLogging::~mdLogging+00000154
[ 16] 0x0000000015ab978c bin\win64\pgo\m_dispatcher.dll+00038796 Mfunction_handle::dispatch+00000668
[ 17] 0x000000001671aadd bin\win64\pgo\m_lxe.dll+00240349
[ 18] 0x00000000167026c9 bin\win64\pgo\m_lxe.dll+00141001
[ 19] 0x00000000167032f3 bin\win64\pgo\m_lxe.dll+00144115
[ 20] 0x000000001670474c bin\win64\pgo\m_lxe.dll+00149324
[ 21] 0x0000000016705288 bin\win64\pgo\m_lxe.dll+00152200
[ 22] 0x000000001670498f bin\win64\pgo\m_lxe.dll+00149903
[ 23] 0x00000000166f8c4b bin\win64\pgo\m_lxe.dll+00101451
[ 24] 0x000000001670004a bin\win64\pgo\m_lxe.dll+00131146
[ 25] 0x00000000166ff7d0 bin\win64\pgo\m_lxe.dll+00128976
[ 26] 0x00000000167d94bc bin\win64\pgo\m_lxe.dll+01021116 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00031104
[ 27] 0x00000000167d8e05 bin\win64\pgo\m_lxe.dll+01019397 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029385
[ 28] 0x00000000167d8db1 bin\win64\pgo\m_lxe.dll+01019313 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029301
[ 29] 0x0000000015ab44d4 bin\win64\pgo\m_dispatcher.dll+00017620 Mfh_file::dispatch_fh_impl+00000820
[ 30] 0x0000000015ab4196 bin\win64\pgo\m_dispatcher.dll+00016790 Mfh_file::dispatch_fh+00000062
[ 31] 0x0000000015ab98fd bin\win64\pgo\m_dispatcher.dll+00039165 Mfunction_handle::dispatch+00001037
[ 32] 0x000000001e50a6f9 bin\win64\pgo\mcos_impl.dll+00239353
[ 33] 0x000000001e525217 bin\win64\pgo\mcos_impl.dll+00348695
[ 34] 0x000000001e524944 bin\win64\pgo\mcos_impl.dll+00346436
[ 35] 0x000000001e524151 bin\win64\pgo\mcos_impl.dll+00344401
[ 36] 0x000000001e524008 bin\win64\pgo\mcos_impl.dll+00344072
[ 37] 0x0000000015ab9be1 bin\win64\pgo\m_dispatcher.dll+00039905 Mfh_MATLAB_fn::dispatch_fh+00000641
[ 38] 0x000000001e5081e4 bin\win64\pgo\mcos_impl.dll+00229860
[ 39] 0x00000000166fa61c bin\win64\pgo\m_lxe.dll+00108060
[ 40] 0x0000000016851ffb bin\win64\pgo\m_lxe.dll+01515515 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00013323
[ 41] 0x0000000016850aa7 bin\win64\pgo\m_lxe.dll+01510055 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00007863
[ 42] 0x00000000166fa717 bin\win64\pgo\m_lxe.dll+00108311
[ 43] 0x0000000016789eb5 bin\win64\pgo\m_lxe.dll+00695989
[ 44] 0x0000000016718e6a bin\win64\pgo\m_lxe.dll+00233066
[ 45] 0x000000001685a423 bin\win64\pgo\m_lxe.dll+01549347 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00047155
[ 46] 0x00000000168c1a97 bin\win64\pgo\m_lxe.dll+01972887 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00470695
[ 47] 0x00000000168c1a05 bin\win64\pgo\m_lxe.dll+01972741 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00470549
[ 48] 0x00000000167026c9 bin\win64\pgo\m_lxe.dll+00141001
[ 49] 0x00000000167032f3 bin\win64\pgo\m_lxe.dll+00144115
[ 50] 0x000000001670474c bin\win64\pgo\m_lxe.dll+00149324
[ 51] 0x0000000016705288 bin\win64\pgo\m_lxe.dll+00152200
[ 52] 0x000000001670498f bin\win64\pgo\m_lxe.dll+00149903
[ 53] 0x00000000166f8c4b bin\win64\pgo\m_lxe.dll+00101451
[ 54] 0x000000001670004a bin\win64\pgo\m_lxe.dll+00131146
[ 55] 0x00000000166ff7d0 bin\win64\pgo\m_lxe.dll+00128976
[ 56] 0x00000000167d9392 bin\win64\pgo\m_lxe.dll+01020818 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00030806
[ 57] 0x00000000167d8eca bin\win64\pgo\m_lxe.dll+01019594 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029582
[ 58] 0x0000000015ab44d4 bin\win64\pgo\m_dispatcher.dll+00017620 Mfh_file::dispatch_fh_impl+00000820
[ 59] 0x0000000015ab4126 bin\win64\pgo\m_dispatcher.dll+00016678 Mfh_file::dispatch_fh_with_reuse+00000062
[ 60] 0x00000000166fa61c bin\win64\pgo\m_lxe.dll+00108060
[ 61] 0x0000000016855f83 bin\win64\pgo\m_lxe.dll+01531779 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00029587
[ 62] 0x00000000168533d5 bin\win64\pgo\m_lxe.dll+01520597 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00018405
[ 63] 0x0000000015c8a027 bin\win64\pgo\m_interpreter.dll+00040999 inFullFevalFcn+00000519
[ 64] 0x0000000015abb0ee bin\win64\pgo\m_dispatcher.dll+00045294 mdLogging::~mdLogging+00000154
[ 65] 0x0000000015ab978c bin\win64\pgo\m_dispatcher.dll+00038796 Mfunction_handle::dispatch+00000668
[ 66] 0x000000001671aadd bin\win64\pgo\m_lxe.dll+00240349
[ 67] 0x00000000167026c9 bin\win64\pgo\m_lxe.dll+00141001
[ 68] 0x00000000167032f3 bin\win64\pgo\m_lxe.dll+00144115
[ 69] 0x000000001670474c bin\win64\pgo\m_lxe.dll+00149324
[ 70] 0x0000000016705288 bin\win64\pgo\m_lxe.dll+00152200
[ 71] 0x000000001670498f bin\win64\pgo\m_lxe.dll+00149903
[ 72] 0x00000000166f8c4b bin\win64\pgo\m_lxe.dll+00101451
[ 73] 0x000000001670004a bin\win64\pgo\m_lxe.dll+00131146
[ 74] 0x00000000166ff7d0 bin\win64\pgo\m_lxe.dll+00128976
[ 75] 0x00000000168573e1 bin\win64\pgo\m_lxe.dll+01536993 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00034801
[ 76] 0x0000000016856b3e bin\win64\pgo\m_lxe.dll+01534782 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00032590
[ 77] 0x0000000016855f83 bin\win64\pgo\m_lxe.dll+01531779 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00029587
[ 78] 0x00000000168533d5 bin\win64\pgo\m_lxe.dll+01520597 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00018405
[ 79] 0x0000000015c8a027 bin\win64\pgo\m_interpreter.dll+00040999 inFullFevalFcn+00000519
[ 80] 0x0000000015abb0ee bin\win64\pgo\m_dispatcher.dll+00045294 mdLogging::~mdLogging+00000154
[ 81] 0x0000000015ab978c bin\win64\pgo\m_dispatcher.dll+00038796 Mfunction_handle::dispatch+00000668
[ 82] 0x0000000016718cea bin\win64\pgo\m_lxe.dll+00232682
[ 83] 0x00000000168593a7 bin\win64\pgo\m_lxe.dll+01545127 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00042935
[ 84] 0x000000001685a355 bin\win64\pgo\m_lxe.dll+01549141 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00046949
[ 85] 0x000000001685a281 bin\win64\pgo\m_lxe.dll+01548929 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00046737
[ 86] 0x00000000167026c9 bin\win64\pgo\m_lxe.dll+00141001
[ 87] 0x00000000167032f3 bin\win64\pgo\m_lxe.dll+00144115
[ 88] 0x000000001670474c bin\win64\pgo\m_lxe.dll+00149324
[ 89] 0x0000000016705288 bin\win64\pgo\m_lxe.dll+00152200
[ 90] 0x000000001670498f bin\win64\pgo\m_lxe.dll+00149903
[ 91] 0x00000000166f8c4b bin\win64\pgo\m_lxe.dll+00101451
[ 92] 0x000000001670004a bin\win64\pgo\m_lxe.dll+00131146
[ 93] 0x00000000166ff7d0 bin\win64\pgo\m_lxe.dll+00128976
[ 94] 0x00000000167d9392 bin\win64\pgo\m_lxe.dll+01020818 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00030806
[ 95] 0x00000000167d8eca bin\win64\pgo\m_lxe.dll+01019594 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029582
[ 96] 0x0000000015ab44d4 bin\win64\pgo\m_dispatcher.dll+00017620 Mfh_file::dispatch_fh_impl+00000820
[ 97] 0x0000000015ab4126 bin\win64\pgo\m_dispatcher.dll+00016678 Mfh_file::dispatch_fh_with_reuse+00000062
[ 98] 0x0000000017d3bc73 bin\win64\pgo\m_lxe.dll+23444595 boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::save_object_ptr+00533495
[ 99] 0x0000000016855f83 bin\win64\pgo\m_lxe.dll+01531779 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00029587
[100] 0x00000000168533d5 bin\win64\pgo\m_lxe.dll+01520597 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00018405
[101] 0x0000000015c8a027 bin\win64\pgo\m_interpreter.dll+00040999 inFullFevalFcn+00000519
[102] 0x0000000015abb0ee bin\win64\pgo\m_dispatcher.dll+00045294 mdLogging::~mdLogging+00000154
[103] 0x0000000015ab978c bin\win64\pgo\m_dispatcher.dll+00038796 Mfunction_handle::dispatch+00000668
[104] 0x0000000016718cea bin\win64\pgo\m_lxe.dll+00232682
[105] 0x00000000168593a7 bin\win64\pgo\m_lxe.dll+01545127 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00042935
[106] 0x000000001798be7d bin\win64\pgo\m_lxe.dll+19578493 boost::serialization::singleton<boost::archive::detail::archive_serializer_map<boost::archive::binaryTerm_oarchive> >::get_instance+17382661
[107] 0x000000001685a281 bin\win64\pgo\m_lxe.dll+01548929 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00046737
[108] 0x00000000166f95d7 bin\win64\pgo\m_lxe.dll+00103895
[109] 0x00000000166f85c0 bin\win64\pgo\m_lxe.dll+00099776
[110] 0x000000001670004a bin\win64\pgo\m_lxe.dll+00131146
[111] 0x00000000166ff7d0 bin\win64\pgo\m_lxe.dll+00128976
[112] 0x00000000167d9392 bin\win64\pgo\m_lxe.dll+01020818 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00030806
[113] 0x00000000167d8eca bin\win64\pgo\m_lxe.dll+01019594 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029582
[114] 0x0000000015ab44d4 bin\win64\pgo\m_dispatcher.dll+00017620 Mfh_file::dispatch_fh_impl+00000820
[115] 0x0000000015ab4126 bin\win64\pgo\m_dispatcher.dll+00016678 Mfh_file::dispatch_fh_with_reuse+00000062
[116] 0x00000000166fa61c bin\win64\pgo\m_lxe.dll+00108060
[117] 0x0000000016855f83 bin\win64\pgo\m_lxe.dll+01531779 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00029587
[118] 0x00000000168533d5 bin\win64\pgo\m_lxe.dll+01520597 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00018405
[119] 0x0000000015c8a167 bin\win64\pgo\m_interpreter.dll+00041319 inCallFcn+00000119
[120] 0x000000003cce6a9d bin\win64\sl_services.dll+00944797 slsv::util::NativeStackDisabler::~NativeStackDisabler+00004061
[121] 0x000000003ccedf07 bin\win64\sl_services.dll+00974599 CMatlabCommand::execute+00000199
[122] 0x000000003ccf60a8 bin\win64\sl_services.dll+01007784 slsvFEVAL_NoThrow+00000280
[123] 0x000000003ccf6110 bin\win64\sl_services.dll+01007888 slsvFEVAL_NoThrow+00000064
[124] 0x00000000ec5bf0c8 bin\win64\sl_utility.dll+00127176 slu::MLEvalUtil::slCallFcnWithTrappingPrompt+00000104
[125] 0x00000000d8d99cd7 bin\win64\libmwsimulink.dll+01875159 MLTerminate_libmwsimulink+00004039
[126] 0x00000000a3b8c670 bin\win64\sl_mi.dll+00247408 SLM3I::mi::initCosSFBlockOpenNotification+00032288
[127] 0x000000001e524e82 bin\win64\pgo\mcos_impl.dll+00347778
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.** This crash report has been saved to disk as C:\Users\HUROLA~1\AppData\Local\Temp\matlab_crash_dump.14044-1 **
-------------------------------------------------------------
This segmentation violation occurred while executing the
S-function 'TrackerMultiObject' in block 'D'.
A common cause of this segmentation violation is an incorrect
input port direct feedthrough setting. Each input port of the
S-function that is read (accessed) in mdlOutputs and/or
mdlGetTimeOfNextVarHit must specify that it needs its input
signal in these routines by setting direct feedthrough for
these input ports.
Another cause can be incorrect memory accesses which occur
when your code accesses beyond the end of an array. For example
if you access input port 5 and in mdlInitializeSizes specify
that you only have 4 input ports.
To debug your C-MEX S-function, you can enable diagnostics
by compiling the S-function source with the -g flag, e.g.,
mex -g sfunction_name.c
-------------------------------------------------------------
Thanks
-Josh

Answers (0)

Categories

Find more on Reporting and Database Access in Help Center and File Exchange

Asked:

on 13 Jun 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!