Why does MATLAB 7.0.1 (R14SP1) crash when I make an incomplete function call while using the Image Acquisition Toolbox?

1 view (last 30 days)
I am using the Image Acquisition Toolbox with MATLAB 7.0.1 (R14SP1). After I open my video input object, I changed its 'ReturnedColorSpace' property. Then I tried to evaluate an incomplete command such as :
corr2(frame1,fra
where 'frame1' is the image returned from my SNAPSHOT function. At this point, MATLAB crashed with the following error message:
------------------------------------------------------------------------
Assertion detected at Tue Oct 12 14:14:57 2004
------------------------------------------------------------------------
Assertion failed: hdr->in_use != 0, at line 736 of file ".\memmgr\memcache.cpp".
Attempt to free previously freed memory
Stack Trace:
[0] bridge.dll:_mnSignalHandler(0xffffffff, 0, 0, 0x79c99b80) + 303 bytes
[1] bridge.dll:void __cdecl ThrowAssertion(void)(0x013c6a88, 0x78775a68, 0x65737341, 0x6f697472) + 164 bytes
[2] bridge.dll:void __cdecl MATLABAssertFcn(char const *,char const *,int,char const *)(0x7874d4ec ": hdr->in_use != 0,", 0x7874d328 ".\memmgr\memcache.cpp", 736, 0x7874c590 "Attempt to free previously freed..") + 110 bytes
...

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0.1 (R14sp1) in the way that MATLAB handles incomplete function calls which are executed using the "Evaluate Selection" option. There are currently no known workarounds other than refraining from making incomplete function calls.

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!