   SlimDX and SLHL PS 2.0 problem with loading efect
  I want to change brightnes of pixels in my scene with one lightfloat lightingFactor = 1;float bright = clamp(xBrightness, 0.3f, 1.0f);if (xEnableLighting){lightingFactor = saturate(saturate(dot(PSIn.Normal, PSIn.LightDirection)) + xAmbient);lightingFactor = lightingFactor * bright; // this line do the mess}   Output.Color = tex2D(TextureSampler0, PSIn.TextureCoords);    Output.Color *= lightingFactor;return OutputIf I load this effect in SlimDX efect = Effect.FromFile(this.device, @"./HLSL/multi.fx", null, null, null, ShaderFlags.None, null, out errs);I got "E_FAIL: An undetermined error occurred (-2147467259)" on this line. If I load this effect with "ShaderFlags.NoPreshader" flag, everything work fine.If I compile shader in FX Composer, everything is fine and shader works.   
  What gets stored in the errs variable when you hit the error?   ;  Nothing, because C# and everything crash on this lineefect = Effect.FromFile(this.device, @"./HLSL/multi.fx", null, null, null, ShaderFlags.None, null, out errs);and it didn´t move further to write out error.   ;  Do you have unmanaged code debuging on? Are the DirectX debug runtimes on?C#, as you put it, should not just "crash", you should at least get the Break/Continue dialog, in which case, if you select break you can then check the value of your errs variable.   ;  Where can I enable DX debug ?   ;  If you're using the March version, there's a bug in the HLSL compiler that totally breaks certain shaders when preshader is active. I imagine August has fixed it.   ;  Thanks... but August release has some way different DirectInput :/ And this doesn´t work:this.keyboard = new Input.Device<Input.KeyboardState>(this.input, Input.SystemGuid.Keyboard);   