Prev: Evaluate a transfer function at a point
Next: Error in fsolve: CAT arguments dimensions are not consistent
From: Oliver Woodford on 28 May 2010 09:21 Hi all Can anyone describe a way to set up a class so that when an object of that class is deleted (i.e. cleared from memory), a callback function is called with details of the object being deleted? I need this to finally properly solve the C++ object referencing problem I discuss here: http://www.mathworks.com/matlabcentral/newsreader/view_thread/278243#732195 Many thanks, Oliver
From: Steven Lord on 28 May 2010 10:25 "Oliver Woodford" <o.j.woodford.98(a)cantab.net> wrote in message news:htog0i$dvb$1(a)fred.mathworks.com... > Hi all > > Can anyone describe a way to set up a class so that when an object of that > class is deleted (i.e. cleared from memory), a callback function is called > with details of the object being deleted? > > I need this to finally properly solve the C++ object referencing problem I > discuss here: > http://www.mathworks.com/matlabcentral/newsreader/view_thread/278243#732195 You mean like this? http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/brfylzt-1.html#brfylzt-6 -- 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: Oliver Woodford on 28 May 2010 11:22
"Oliver Woodford" wrote: > > Can anyone describe a way to set up a class so that when an object of that > > class is deleted (i.e. cleared from memory), a callback function is called > > with details of the object being deleted? "Steven Lord" wrote: > You mean like this? > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/brfylzt-1.html#brfylzt-6 Yes, precisely. I figured there'd be a way. Thanks, Steven. |