Troubleshooter
2007/07/28 @ 13:251. When I start MATLAB, I receive the following error message and/or segmentation violation. In some cases, MATLAB is then useless since none of the M-file or built-in functions are found:
Encountered unexpected end-of-file (line ####) while loading toolbox cache.
Currently, to work around this problem, if you remove the “toolbox_cache.xml” file from your MATLAB preference directory, a new file will be generated the next time you start MATLAB. The MATLAB preference directory contains files used to start MATLAB and store information about its use (preferences, command history, etc.). It is generally located in the following directories (for MATLAB 6.5 (R13)):
- Windows: C:\WINNT\Profiles\username\Application Data\MathWorks\MATLAB\R13\
- Unix/Linux: /home/username/.matlab/R13
If the problem persists, try removing the “toolbox_cache.xml” file from the following directory, where $MATLAB denotes your root MATLAB directory:
$MATLAB/toolbox/local/toolbox_cache.xml
If the problem continues to occur, try disabling toolbox caching altogether, using the following online documentation as a guide:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/start_q7.shtml
2. View Full Version : Why isn’t the HAL.DLL / NTOSKRNL.EXE error in the Knowledge Base?
http://forum.parallels.com/archive/index.php/t-13336.html