yfeldblum
yfeldblum

Reputation: 65435

How to run a program in 32-bit mode on Vista 64?

I am building an app that talks to an Access database via OleDB/Jet. There is only a 32-bit Jet provider, no 64-bit provider, so the app needs to be running in 32-bit mode. My dev box is Vista 64, so I set the project to build for x86 instead of any cpu. That gets my app running and talking to the database.

But now I want to run some unit tests with Gallio Icarus, which is built for any cpu and is strongly signed (meaning using CorFlags.exe (in the SDK) to force-switch to 32-bit only will cause the assembly not to run until it's been re-signed).

Is there some way to run Gallio Icarus in 32-bit mode so I can load these unit tests?

Upvotes: 1

Views: 9800

Answers (3)

yfeldblum
yfeldblum

Reputation: 65435

Turns out the trick was using CorFlags.exe to mark Gallio.Host.exe as 32bit only.

Upvotes: 3

Kev
Kev

Reputation: 119806

Isn't Gallio open source? You could download and build (and sign if necessary) to suit your needs, or am I missing something, should I get my coat?

http://www.gallio.org/Development.aspxlink text

Upvotes: 0

Franci Penov
Franci Penov

Reputation: 75982

You need to build your program specifically targeting the x86 processor.

Project properties -> Build -> Platform target: x86

Upvotes: 1

Related Questions