I am trying to memory map variables specified by a batch of 100 text files using the following code:
fname = 'myfile.txt';f_cell = {'uint8' , [1 10] , 'myData1' ; 'uint8' , [1 10] , 'myData2' ; 'uint8' , [1 10] , 'myData2' ; };for i = 1:100 m = memmapfile(fname , 'format', f_cell , 'offset' , 9); s = m.data;end
After many iterations through the loop, I receive the following error:
------------------------------------------------------------------------ Assertion detected at Mon Jul 11 17:20:07 2005 ------------------------------------------------------------------------ Assertion failed: BlockNum!=USHRT_MAX, at line 426 of file ".\memmgr\mem32aligned.cpp". Configuration: MATLAB Version: 7.0.4.365 (R14) Service Pack 2 Operating System: Microsoft Windows XP Window System: Version 5.1 (Build 2600: Service Pack 2) Processor ID: x86 Family 15 Model 7 Stepping 10, AuthenticAMD Virtual Machine: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM (mixed mode) Default Charset: ibm-5348_P100-1997 Stack Trace: Error in ==> memmapfile.memmapfile>subsref__ at 537 val = hSubsref(obj.dataHandle, s(2:end)); <SNIP>
Best Answer