all groups > dotnet clr > june 2007 >
You're in the

dotnet clr

group:

Windows Service EXE x86 + Assembly (AnyTarget)?


Windows Service EXE x86 + Assembly (AnyTarget)? MJ
6/27/2007 5:56:32 PM
dotnet clr:
Hello,

we have written a VB.NET windows service application for reading OLEDB
data sources on x64 machines. The service EXE itself is compiled using
the x86 switch (necessary for accessing the 32-bit Jet driver on the
x64 machine), a DLL used by the service EXE is compiled using
AnyTarget switch. On our 32-bit development machines everything works
like a charm.

My question: Will our x86 service EXE be able to call into the
"AnyTarget" DLL on the x64 production machine or do we have to compile
our DLL using the x86 switch too? The reason we are asking is because
we have no 64-bit machine for testing, only at our customer's plant
next week.

Thx!
Re: Windows Service EXE x86 + Assembly (AnyTarget)? Günter Prossliner
6/28/2007 1:05:47 PM
Hello!

[quoted text, click to view]

Yes. Absolutly. The JIT Compiler will produce x86 Code from the "AnyTarget"
DLL, because the Process ist x86.

[quoted text, click to view]

No.



GP

Re: Windows Service EXE x86 + Assembly (AnyTarget)? MJ
6/29/2007 10:51:14 AM
[quoted text, click to view]

G=FCnter, thanks for your reply. It's good to know that I don't have to
compile everything twice (DLLs used inside SQL Server 2005 too). Thx!
AddThis Social Bookmark Button