MATLAB Answers

Why do I receive a "Runtime Error" or segmentation violation during startup on my Windows computer in MATLAB 6.5 (R13)?

1 view (last 30 days)
When I launch MATLAB I receive the following error:
Runtime Error!
Program C:\MATLAB6p5=bin=win32\matlab.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
and the following log file named matlab_crash_dump.XXXX is left in my C:\temp directory:
-----------
Segmentation violation detected at Mon Nov 18 09:26:47 2002
-----------
Configuration:
MATLAB Version: 6.5.0.180913a (R13)
Operating System: Microsoft Windows XP
Window System:Version 5.1 (Build 2600)
Processor ID: x86 Family 6 Model 7 Stepping 0, AuthenticAMD
Virtual Machine:Java 1.3.1_01 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)
Register State:
EAX = 00000000EBX = 0a754148
ECX = 00007fffEDX = 00000000
ESI = 141ce7d8EDI = 00dfd238
EBP = 00dfd228ESP = 00dfd204
EIP = 7900ea88FLG = 00010202
Stack Trace:
[0] MFC42.DLL:0x7900ea88(0x00dfd238, 0x0a754008, 0x7909f368, 0x7909d674)
[1] MFC42.DLL:0x79065b7e(0x7a541db4 "MatlabCommandState", 0x0a7540c8, 0x0a754008, 0x7a4fb3c0)
[2] uiw.dll:protected: int __thiscall CCmdFrame::CreateToolBar(void)(0x0a754008, 0x00dfd54c,
0x00dfd334 "TÓß", 0x79001d42) + 179 bytes
[3] uiw.dll:protected: int __thiscall CCmdFrame::OnCreate(struct tagCREATESTRUCTA *)
(0x00dfd54c, 0x0a754008, 0x0a754008, 288080) + 96 bytes
[4] MFC42.DLL:0x79001d42(1, 0, 0x7a535f08, 0x00dfd350)
[5] MFC42.DLL:0x79001b63(1, 0, 0x00dfd54c, 0x00dfd54c)
[6] MFC42.DLL:0x79001aec(0, 262690, 1, 0)
[7] MFC42.DLL:0x79001a74(262690, 1, 0, 0x00dfd54c)
[8] uiw.dll:long __stdcall AfxWndProcDllStatic(struct HWND__ *,unsigned int,unsigned int,long)
<snip>

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The segmentation violation can be caused due to a corruption in either the profile of the current user or by corrupted Windows libraries. In order to determine which is the cause, try logging in as a different username and run MATLAB.
If you are able to successfully launch MATLAB under a different username:
1. Log onto the machine, as the user that is receiving the error.
2. On your desktop, click on Start > Run
3. Type "regedit" in the Open text field and click OK, this will bring up the Registry Editor
4. In the Registry Editor expand the following folders: HKEY_CURRENT_USER > Software > MathWorks > Matlab
5. Under the MATLAB key, find the folder having the same name as the version number of the MATLAB that is crashing; and delete it. This Registry key will be regenerated the next time MATLAB is started.
Click on the link below to view an image of the Registry Editor, which shows how to delete a registry key for MATLAB 6.5 (R13).
After following these steps, you should be able to launch MATLAB successfully.
If MATLAB crashes regardless of the user who is logged in, the crash may be caused by corrupted system libraries. For Windows NT, 2000, or XP, some customers have found that reinstalling Windows Service Packs have resolved the issue.

  0 Comments

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!