BadImageFormatException....the DLL works in reflector though!??

N

nate

hi :)

i am having a strange problem. i have a plug-in system that i use to
add support for various CAD file formats. i have a Maya plug-in that i
have been running successfully for quite some time (i.e. months). a
couple of days ago, however, i started getting a
BadImageFormatException when i tried loading my managed mayaplug.dll.
The DLL does in fact load up some unmanaged DLLs for support, but this
has never been a problem in the past. i used
www.sysinternals.com/filemon to look at the files that were being
loaded, but everything seemed to load as i expected. also, .NET
reflector was able to load the assembly and display information about
it. i am guess it is using a "reflection only" load or something,
because none of the support unmanaged DLLs show up in filemon when
using reflector.

the only difference i know of to the software is that, at a high level,
a different current directory is being set up front. my plug-in
actually changes the current directory while loading its dependent
DLLs, then changes it back to its original value...so i don't think
this would have any effect.

thank you for any help :)
n8
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top