edgar-mtz-e / slimdx

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

ShaderByteCode.GetSamplers() error #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I call the GetSamplers() function from the ShaderByteCode object I 
get this:
A first chance exception of type 'System.ArgumentOutOfRangeException' 
occurred in SlimDX.dll
'_function.ByteCode.GetSamplers()' threw an exception of 
type 'System.ArgumentOutOfRangeException'
    base {System.ArgumentException}: {"Pointer startIndex and length do 
not refer to a valid string.\r\nParameter name: ptr"}
    ActualValue: null
    m_actualValue: null
    Message: "Pointer startIndex and length do not refer to a valid 
string.\r\nParameter name: ptr"

Original issue reported on code.google.com by tape.wyrm on 30 Jun 2008 at 6:33

GoogleCodeExporter commented 9 years ago
I'll take a look.

Original comment by Mike.Popoloski on 1 Jul 2008 at 11:45

GoogleCodeExporter commented 9 years ago
Can you send me a copy of your project that is causing this error (and the one 
for
the other issue you filed as well). It would help a lot to have the debugger 
handy
when it crashes.

Original comment by Mike.Popoloski on 1 Jul 2008 at 11:25

GoogleCodeExporter commented 9 years ago
I don't have project for this, and what code I did have is long gone.  It was 
happening in the immediate window (and later as a test, in my code, which has 
since 
been removed).  Basically I had an instance of ShaderByteCode and in the 
immediate 
window I typed: "? myByteCode.GetSamplers()" and it failed.  The same happened 
with 
the other error.

Original comment by tape.wyrm on 1 Jul 2008 at 11:37

GoogleCodeExporter commented 9 years ago
Should be fixed now. If not, be sure to let us know.

Original comment by Mike.Popoloski on 3 Jul 2008 at 5:07