A
A n g l e r
Hi all.
I'm having a project which includes:
1. a DLL library which consists of two crucial parts:
a) an unmanaged code with algorithms and references to other unmanaged
libraries
b) a managed wrapper
The library is compiled witch /clr switch as either 32 or 64 bit build
depending on what I need.
2. A C# interface that utilises the library (the DLL project added as a
reference)
The problem I'm facing is that I can compile all stuff successfully, x64
builds seem to kick-off fine, though x86 builds don't seem to work at
all. While launching the compiled project it ends up with the following:
The specified module could not be found. (Exception from HRESULT:
0x8007007E)
It also kept suggesting that this has something to do with mscorlib.dll.
but then I contrived something with debugging and it stopped showing this :/
Anyway, the same problem arises when I attempt to use 32 bit DLL library
in C# code compiled for 64 bit library. In a nutshell:
32 DLL + 32 C# = error
32 DLL + 64 C# = the same error which is OK here
64 DLL + 32 C# = as above
64 DLL + 64 C# = works just fine
Anyway, the project used to run on windows x86 in the past and it was
fine. As far as I can spot, there is a number of posts about the issue,
though I haven't found any explicit answer how to tackle this. So, if
you have any suggestions ...
Thanks in advance,
Peter
I'm having a project which includes:
1. a DLL library which consists of two crucial parts:
a) an unmanaged code with algorithms and references to other unmanaged
libraries
b) a managed wrapper
The library is compiled witch /clr switch as either 32 or 64 bit build
depending on what I need.
2. A C# interface that utilises the library (the DLL project added as a
reference)
The problem I'm facing is that I can compile all stuff successfully, x64
builds seem to kick-off fine, though x86 builds don't seem to work at
all. While launching the compiled project it ends up with the following:
The specified module could not be found. (Exception from HRESULT:
0x8007007E)
It also kept suggesting that this has something to do with mscorlib.dll.
but then I contrived something with debugging and it stopped showing this :/
Anyway, the same problem arises when I attempt to use 32 bit DLL library
in C# code compiled for 64 bit library. In a nutshell:
32 DLL + 32 C# = error
32 DLL + 64 C# = the same error which is OK here
64 DLL + 32 C# = as above
64 DLL + 64 C# = works just fine
Anyway, the project used to run on windows x86 in the past and it was
fine. As far as I can spot, there is a number of posts about the issue,
though I haven't found any explicit answer how to tackle this. So, if
you have any suggestions ...
Thanks in advance,
Peter