Prev: Can you stop and continue execution, or check the progress of the
Next: sinc interpolation along one dimension of a 4D array
From: Bahattin on 26 Jul 2010 09:36 I'm using a "ConnectionCallback" function to automatically name lines, that are connected to a inport of a subsystem. But there's one reproducible problem occuring, if I change portnames of other blocks. Matlab crashes with following error message: "------------------------------------------------------------------------ Assertion detected at Mon Jul 26 15:26:59 2010 ------------------------------------------------------------------------ Assertion failed: Forced Assertion at line 714 of file ".\memmgr\mem32aligned.cpp". Corrupted memory block found ....." This is my "ConnectionCallback" function: --------------------------------------------- function [] = foo(ph) % get block name sigBlockName = get_param(gcbh, 'Name'); % get connected line l = get_param(ph, 'Line'); if l ~= -1 % set name of connected line set_param(l, 'Name', sigBlockName); else % get name of disconnected line/port and replace it by empty string l2 = find_system(gcs, 'FindAll', 'on', 'Type', 'port', 'Name', sigBlockName); portO = get_param(l2, 'Object'); set(portO,'Name', ''); % THIS COMMAND CAUSES AN ERROR! end end --------------------------------------------- Would be nice, if someone could tell me what the reason is.
From: Bahattin on 26 Jul 2010 09:55 I've forgotten to tell, that a crash only occurs if I disconnect the line from inport. Deleting the line (and/or the hole subsystem) works fine.
From: Steven_Lord on 26 Jul 2010 10:07 "Bahattin " <egal88(a)directbox.com> wrote in message news:i2k309$om0$1(a)fred.mathworks.com... > I'm using a "ConnectionCallback" function to automatically name lines, > that are connected to a inport of a subsystem. > > But there's one reproducible problem occuring, if I change portnames of > other blocks. Matlab crashes with following error message: > > "------------------------------------------------------------------------ > Assertion detected at Mon Jul 26 15:26:59 2010 > ------------------------------------------------------------------------ > Assertion failed: Forced Assertion at line 714 of file > ".\memmgr\mem32aligned.cpp". > Corrupted memory block found > ...." *snip* Please send this log file along with whatever instructions, code, and/or models are necessary to reproduce this behavior to Technical Support for investigation. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: Bahattin on 26 Jul 2010 10:36
done... Hope I'll get a answer soon. "Steven_Lord" <slord(a)mathworks.com> wrote in message <i2k4rb$qbk$1(a)fred.mathworks.com>... > > > "Bahattin " <egal88(a)directbox.com> wrote in message > news:i2k309$om0$1(a)fred.mathworks.com... > > I'm using a "ConnectionCallback" function to automatically name lines, > > that are connected to a inport of a subsystem. > > > > But there's one reproducible problem occuring, if I change portnames of > > other blocks. Matlab crashes with following error message: > > > > "------------------------------------------------------------------------ > > Assertion detected at Mon Jul 26 15:26:59 2010 > > ------------------------------------------------------------------------ > > Assertion failed: Forced Assertion at line 714 of file > > ".\memmgr\mem32aligned.cpp". > > Corrupted memory block found > > ...." > > *snip* > > Please send this log file along with whatever instructions, code, and/or > models are necessary to reproduce this behavior to Technical Support for > investigation. > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ > To contact Technical Support use the Contact Us link on > http://www.mathworks.com |