views:

50

answers:

0

I'm using Sql Server Management Objects (SMO) in my integration tests. When I run them from Visual Studio (using TestDriven.NET or Resharper) there's no problem. But when I run from Machine.Specifications.ConsoleRunner.exe the code stops and I get this Windows dialog:

R6034 - The application has made an attempt to load the C runtime library incorrectly.

It happens the first (and only the first) time a test calls this:

database.ExecuteNonQuery("delete from " + table.Name);

where "database" is an SMO object. I click OK, and the run finishes normally. Besides being a hassle, this will obviously be a killer for CI builds.

Ideas???

UPDATE: I should add this this behavior has been seen on Vista and Win 2003 Server. It has been seen to not happen on Windows 7.