Hi,
my application uses DirectX 9 via SlimDX. The versions are up-to-date.
When trying to dispose a VertexShader object, the execution breaks in ComObject.cpp, line 114:
m_Unknown->Release();
The output window tells me: "A first chance exception of type 'System.AccessViolationException' occurred in SlimDX.dll".
The shader is created and disposed as follows:
public VertexShader CompileVertexShader(string code, string entryPoint, string profile)
{
string compilationErrors;
VertexShader shader = VertexShader.FromString(device, code, entryPoint, profile, ShaderFlags.None, out compilationErrors);
return shader;
}
...
if (vertexShader!=null)
vertexShader.Dispose();
IDE is Visual Studio Express 2008, I'm using the debug version of DirectX and the release version of SlimDX.
I do not dispose the ConstantTable object from the VertexShader (should I?).
Also, I'm not using a SlimDX.Direct3D9.Device directly but an own class derived from it.
I'll appreciate any suggestions!
Tubos