Unexpected Standard Exception from MEX file

Hi,
I’m using a Microsoft XP operating system. I use FORTRAN as a compiler on MATLAB to create MEX Files.
As I try to configure the system to build MEX files, I get the following error occurred.
Unexpected Standard Exception from MEX File.
What () is: Environment lookup failed: GUID: 251.0010986328125”
Here is a screen shot of the error:

I have tried restarting the program and using a different command, yet keep getting the same error message. Is it because I’m selecting the wrong location of the compiler to use to compile the code?
How do I overcome this problem?
Is it a problem with the compiler I’m using to build the MEX file?
Please help me.
Thanks.
