I have a model that uses SimPowerSystems blocks. I get the following message when I try to run or update the model:
------------------------------------------------------------------------ Segmentation violation detected at Fri Aug 06 13:25:33 2004 ------------------------------------------------------------------------ <snip> Stack Trace: [0] simulink.dll:void __cdecl md5file_addn(struct md5file_tag *,unsigned char *,unsigned int)(0, 16, 2, 0x00cd7294) + 170 bytes [1] simulink.dll:_slAddByteVectorToChecksum(0x2779cc10, 0, 16, 0x22738000) + 20 bytes [2] simulink.dll:void __cdecl slAddRTParamDataToChecksum(struct slBlock_tag const *,struct slChecksumRec_tag *,struct ssParamRec_tag const *,bool)(0x22738000, 0x2779cc10, 0x279d5090, 0) + 222 bytes [3] simulink.dll:struct slErrMsg_tag * __cdecl GenerateChecksumsForSystem(struct slBlockDiagram_tag *,struct slGraph_tag *,struct slChecksumRec_tag *,struct slChecksumRec_tag *,struct BdWriteInfo_Tag *)(0x251adb00, 0x214a01f0, 0x2779f190, 0x2779cc10) + 4653 bytes [4] simulink.dll:struct slErrMsg_tag * __cdecl GenerateChecksumsForSystem(struct slBlockDiagram_tag *,struct slGraph_tag *,struct slChecksumRec_tag *,struct slChecksumRec_tag *,struct BdWriteInfo_Tag *)(0x251adb00, 0x215051a0, 0x2779f190, 0x2779cc10) + 4707 bytes [5] simulink.dll:struct slErrMsg_tag * __cdecl GenerateChecksumsForSystem(struct slBlockDiagram_tag *,struct slGraph_tag *,struct slChecksumRec_tag *,struct slChecksumRec_tag *,struct BdWriteInfo_Tag *)(0x251adb00, 0x215b38b0, 0x2779f190, 0x2779cc10) + 4707 bytes [6] simulink.dll:struct slErrMsg_tag * __cdecl BdComputeChecksums(struct slBlockDiagram_tag *,struct slBlock_tag * *,int)(0x215b38b0, 0x2746b300, 24, 0x00cd7c84) + 409 bytes [7] simulink.dll:struct slErrMsg_tag * __cdecl sleCompileBlockDiagram(struct slBlockDiagram_tag *,bool,enum SimType,struct mxArray_tag *)(0x1de92b98, 0, 0, 0) + 4196 bytes
Best Answer