Hi,
I’m currently working on a project that integrates Usc
, UscCMD
, 'Sequencer`, from Maestro, but I noticed that the provided Bytecode.dll DLL is only available in x86. Since my application runs in a 64-bit environment, I’m encountering compatibility issues.
Is there an x64 version of Bytecode.dll available, or do you have any recommendations for using it in a 64-bit application? If not, is there any plan to release a 64-bit edition?
Thanks in advance for your help!
Hello.
Could you post details about how you are compiling your project, and what specific error messages you are getting?
Brandon
Hi
Thanks for your response.
I’m building my project for x64, and it compiles without issues—Bytecode.dll
is properly copied to the output directory. However, when I run the application, I get a System.IO.FileLoadException, which typically indicates a mismatch between x86 and x64 binaries.
To investigate further, I used dumpbin to check the architecture of the DLLs, and it turns out that Bytecode.dll
(which is only copied and not built) is x86, while the rest of my project is x64. This mismatch is likely causing the issue.
Would it be possible to get a 64-bit version of Bytecode.dll, or do you have any recommended workarounds for this situation?
Thanks!
We tried to reproduce the problem here but could not. What version of Visual Studio are you using? Can you post a screenshot that shows the details of the System.IO.FileLoadException
, including its stack trace? Why do you think this exception is related to Bytecode.dll? Are you compiling a project from the Pololu USB SDK, or did you create a new project? Also, can you provide steps we can follow to see the same error here?
Brandon
HI
the projects inside the Usc.sln are built in AnyCPU which is x86 process (and can work on x64 and x86 OS).
but, I have an x64 process that needs to work with x64 dlls, I can open the Usc.sln and compile in x64 and its all fine, except one thing - the ByteCode.dll is not a dll which the Usc.sln builds, this is precompiled dll (it is already committed to the repo)
can you provide the code for the ByteCode (and I build it with x64) or provide x64 dll?
The Bytecode.dll that we provide is compiled for AnyCPU, which means you can load it in x64 or x86 programs without needing to recompile it. We do not release the source code of Bytecode.dll, and we do not plan to provide multiple versions of that file unless it is needed. If you continue to have trouble, please answer the questions I asked in my last post.
Brandon