MATLAB: Does MATLAB Visual Add-in not work on Windows 95, 98, or ME

add-inenvironmentMATLABMATLAB Compilermeofoutspacevisualwindows

Why does using MATLAB Visual Add-in under Windows 95, 98, or ME result in the following error:
Out of environment space

Best Answer

To run the MATLAB Add-in for Visual Studio on Windows 95 or Windows 98 systems, add the following line to your config.sys file:
shell=c:\command.com /e:32768 /p
Windows ME does not allow us to increase the memory the same way that we do in Windows 95 and 98 because Windows ME does not use the config.sys file. It turns out that in Windows ME, when shelling out, the application that ultimately gets run is conagent.exe.
Please change this application's Initial Environment setting to 4096 bytes (the maximum allowed). The MATLAB Add-in should then work. Here is a set of instructions to do this:
1. Find C:\windows\system\conagent.exe in Windows explorer.
2. Right click on the conagent.exe icon.
3. Select Properties from the context menu. This brings up "CONAGENT.EXE Properties" window.
4. Select the "Memory" tab in the "CONAGENT.EXE Properties" window.
5. Set the Initial Environment field to 4096.
6. Click the "Apply" button.
7. Click the "OK" button.