won't run "An attempt was made to load a program with an incorrect format"


Closed Jun 10, 2011 at 2:09 AM by


AlexForster wrote Jun 10, 2011 at 2:09 AM

This message likely indicates that you're building an exe specifically for either 32 or 64bit, but then running the assembly alongside of a 64 or 32bit libzmq.dll.

First, figure out what architecture you're on - 32bit or 64bit.
Then, build your exe for all architectures.
Finally, make sure that exe is sitting next to the version of libzmq.dll that corresponds with your architecture, and run.