Original Post
It seems that the overload of Effect.FromFile() that's supposed to give a string containing effect compilation errors never fills that string. This is how I call the function: When I use a working effect file, it works fine. When I use an effect file that contains any kind of error (syntactic or semantic), it throws an exception saying "An undetermined error occurred". The 'errors' string is always "". I have tried this with several effect files, and with several types of errors, and it's always the same thing. I'm using the March 2009 version of SlimDX, and, in case it matters, the August 2008 version of the DirectX SDK. Any idea what might be causing this?
string errors;
effect = Effect.FromFile(device, "perPixel.fx", null, null, null,
ShaderFlags.Debug, null, out errors);