MATLAB: Do I receive an Application Error when starting MATLAB on the Win 2000 machine

MATLAB

I receive the following Application Error when starting MATLAB 6.x (R12.x and R13.x):
MATLAB.exe -Application error.
The instruction at 0x78011f41 referenced memory at 0x000622d4. The memory could not be read.
or similar 0x addresses.

Best Answer

If you are using a concurrent/network license, this may be the result of a bug within FLEXnet. If you are using a stand-alone license, see the Related Solution listed at the bottom of the page.
In order to fix the problem, you will need to follow the steps below according to what best fits your needs:
If all of the clients on your network license are having this problem:
***************************************************************************
1. On the license server, open the license.dat file in $MATLAB\flexlm (for PC-Windows server) or $MATLAB/etc (for UNIX/Linux server).
2. Edit the SERVER line in the license.dat file so you have the fully qualified name of your license server instead of the short name in the second field in the SERVER line. For example:
SERVER hostname.company.com INTERNET=IP_Address 27000
or
SERVER hostname.company.com HostID 27000
3. Restart the Network License Manager on the license server.
4. Go to all of your client machines and change the SERVER line in their license.dat files as well. The license.dat file can be found in $MATLAB\bin\win32 on the client machines.
If this does not work for you try repeating the above steps, but use the IP Address of your server instead of the fully qualified hostname in step 2. For example:
SERVER IP_Address INTERNET=IP_Address 27000
If only some of the clients on your network license are having this problem:
************************************************************************************
1. Open your Hosts file located here:
C:\WinNT\system32\drivers\etc
2. Add your license server to this file. You can find your license server information from the SERVER line of your license.dat file. For example, if your SERVER line looks like this:
SERVER hostname INTERNET=128.36.2.12 27000
You should add the following line to your Hosts file:
128.36.2.12 hostname
3. Save the changes to the Hosts file.
If you have a stand-alone license, see the Related Solution at the bottom of the page. The solution describes a different error, but we have seen the workaround work for this problem as well.