vigns / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

ShaderBytecode.Compile keeps throwing System.AccessViolationException #871

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This simple code fails with a System.AccessViolationException:

static void Main(string[] args)
{
    var c = ShaderBytecode.Compile("float4 main(float4 pos:POSITION) : SV_POSITION { return pos }", "VS_4_0");
    Console.WriteLine("Length: " + c.Data.Length);
}

I've tried a few vertex shader versions, and both the x86 and x64 binaries.

Similar code in the same IDE on the same hardware using native C++ works fine.

Any idea what might be going on? The only cause I can think of is some issue 
with Visual Studio 2012 RC or .NET 4.5.50501.

Original issue reported on code.google.com by raging...@hotmail.com on 22 Jun 2012 at 2:11

GoogleCodeExporter commented 9 years ago
Forgot to mention, I'm on the Windows 8 Release Candidate.

Original comment by raging...@hotmail.com on 22 Jun 2012 at 2:24

GoogleCodeExporter commented 9 years ago
Is this still occurring? My only guess is that you don't have the particular 
D3DCompiler DLLs on the system.

I can't repro this on Win8 RTM. I'm going to close for now. If the problem 
still occurs, let me know and I'll reopen.

Original comment by Mike.Popoloski on 10 Sep 2012 at 2:02

GoogleCodeExporter commented 9 years ago
Maybe it's just the RC then. I'm working around it by calling fxc.exe for now. 
Will let you know if it still happens on RTM, but I suspect it won't.

Thanks.

Original comment by raging...@hotmail.com on 10 Sep 2012 at 2:05