My Simulink model contains a Stateflow chart. When I add one more variable to my Stateflow chart and try to run the model, the following segmentation violation occurs:
------------------------------------------------------------------------ Segmentation violation detected at Fri Jun 20 15:22:59 2003 ------------------------------------------------------------------------ Configuration: MATLAB Version: 6.5.0.180913a (R13) Operating System: Microsoft Windows 2000 Window System: Version 5.0 (Build 2195: Service Pack 2) Processor ID: x86 Family 6 Model 8 Stepping 6, GenuineIntel Virtual Machine: Java 1.3.1_01 with Sun Microsystems Inc. Java HotSpot(TM) Client VM (mixed mode) Register State: EAX = 14aa0021 EBX = 00000001 ECX = 00000000 EDX = 00000200 ESI = 00df392c EDI = 00df392c EBP = 00df35f0 ESP = 00df35e8 EIP = 2acc7257 FLG = 00010206 Stack Trace: [0] nqa_sfun.dll:0x2acc7257(0x00df392c, 3, 0x01aeed00, 0x14dc9118) [1] nqa_sfun.dll:0x2ac4161b(1, 0x00df392c, 3, 0x00df39f8) [2] nqa_sfun.dll:0x2ac41851(1, 0x00df392c, 3, 0x00df39f8) [3] nqa_sfun.dll:0x2ac4189a(1, 0x00df392c, 3, 0x00df39f8) [4] nqa_sfun.dll:0x2ac43b07(1, 0x00df392c, 3, 0x00df39f8) [5] libmex.dll:_mexRunMexFile(1, 0x00df392c, 3, 0x00df39f8) + 71 bytes [6] m_interpreter.dll:void __cdecl inCallMexFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const,void (__cdecl*)(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const),struct _mex_context *,struct mexfiles *)(1, 0x00df392c, 3, 0x00df39f8) + 476 bytes <snip>
Best Answer