Invalid MEX-file 'mcxlab.mexw64': The specified module could not be found

2,352 views
Skip to first unread message

Qianqian Fang

unread,
Aug 19, 2012, 12:21:27 PM8/19/12
to v...@post.harvard.edu, mcx-...@googlegroups.com
hi Vivian

for the other question you posted at MCX's website
(attached below), the error "The specified module
could not be found" was due to a missing DLL file.

Please see matlab's troubleshooting:

http://www.mathworks.com/support/solutions/en/data/1-X8A09/index.html

use the dependencywalker tool, you can find which
which dll files are missing. If those are libgomp-1.dll
or pthreadGC2.dll, you can google and download
those separately, or install MinGW32 from

http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/

Qianqian


> Name:Vivian
> Email:vep<at>post.harvard.edu
> Institution:
> Message:
> I followed the instructions for installing mcxlab but still get this error when I try to run it:

> Invalid MEX-file 'C:\Users\Vivian\Documents\MATLAB\mcxlab\mcxlab.mexw64': The specified module could not be found.

> I am running Matlab R2011b (64-bit) on Windows 7 mcxlab folder containing the specified module above is on the Matlab path I have a CUDA-capable graphics card with drivers & CUDA Toolkit 4.2 downloaded from the link on the Installation page I have copied the cudart**.dll files to the Windows\System32 folder I have restarted my system and Matlab

> Any help/suggestions would be most appreciated.


> Time:: Sat Aug 18 22:27:06 EDT 2012</timestamp>

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Roman Hochuli

unread,
Oct 21, 2013, 10:50:38 AM10/21/13
to mcx-...@googlegroups.com, v...@post.harvard.edu
Hi Qianqian,

I am having the same problem reported above. As you suggest in your previous post, I have downloaded the dependencywalker, but can't open the DLL files in Windows\System32. In Windows Explorer, I can see the files, but I get a message saying "File not found" when I try and open it with the dependencywalker.

Any guidance you can provide would be appreciated.

Best,

Roman

Qianqian Fang

unread,
Oct 21, 2013, 11:42:47 AM10/21/13
to mcx-...@googlegroups.com, v...@post.harvard.edu
On 10/21/2013 10:50 AM, Roman Hochuli wrote:
Hi Qianqian,

I am having the same problem reported above. As you suggest in your previous post, I have downloaded the dependencywalker, but can't open the DLL files in Windows\System32. In Windows Explorer, I can see the files, but I get a message saying "File not found" when I try and open it with the dependencywalker.

Any guidance you can provide would be appreciated.

hi Roman

are the missing dlls named "ieshims.dll" and "wer.dll"?
if so, based on this thread, it should be ok:

http://stackoverflow.com/questions/2465111/dependency-walker-reports-ieshims-dll-and-wer-dll-missing

In fact, I am seeing the same (see attachedscreenshot), but
mcxlab runs fine.

if your system is missing other dlls, you should more likely
fix first before trying mcxlab.

Qianqian

--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To post to this group, send email to mcx-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mcx-users.
For more options, visit https://groups.google.com/groups/opt_out.

mcxlab_dep.png

mtc2...@ucmo.edu

unread,
Feb 12, 2015, 6:53:52 PM2/12/15
to mcx-...@googlegroups.com, v...@post.harvard.edu
Try to load the mex file that is generating the error first. For me the command that solved the issued was just LoadPsychHID as PsychHID.mexw64 was the module that was generating the error. I add this to my script before I call the module and everything works great. Hope that helps.

Qianqian Fang

unread,
Feb 12, 2015, 11:54:31 PM2/12/15
to mcx-...@googlegroups.com, v...@post.harvard.edu
On 02/12/2015 06:53 PM, mtc2...@ucmo.edu wrote:
Try to load the mex file that is generating the error first. For me the command that solved the issued was just LoadPsychHID as PsychHID.mexw64 was the module that was generating the error. I add this to my script before I call the module and everything works great. Hope that helps.

thanks for the update! I am sure this will be helpful for other people
who received the same error.

Qianqian

--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To post to this group, send email to mcx-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mcx-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages