I am trying to use the Tamas Szalay C # FFTW port in Visual C # 2010, and I get the above error when I try to use a function from FFTW (in this case fftw.malloc). This error disappears if I manually move the dll to the project / bin / debug / folder, but then I get
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) Method: IntPtr malloc(Int32)
which makes me think that I have a deeper problem.
Perhaps this is relevant: I am running this on an x64 machine, and DependencyWalker says that fftwlib.dll is built for x86.
source share