pandap / slimdx

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

System.MethodAccessException when calling Dispose() on a MeshContainer-derived class in SlimDX 4.0.11.43 #799

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the attached Code, i've derived CustonMeshContainer from MeshContainer and 
overwritten its Dispose(bool)-Method.
When the MeshContainer.Dispose()-Method is called in Line 85, the following 
exception is thrown:

System.MethodAccessException was unhandled by user code
  Message=[C:\Windows\Microsoft.Net\assembly\GAC_64\SlimDX\v4.0_4.0.11.43__b1b0c32fd1ffe4f9\SlimDX.dll] Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations.
  Source=TT.Library.Graphic.SlimDX
  StackTrace:
       at TT.Library.Graphic.SlimDX.Primitives.CustomMeshContainer.Dispose(Boolean disposing)
       at SlimDX.Direct3D9.MeshContainer.Dispose()
       at TT.Library.Graphic.SlimDX.Primitives.CustomAllocateHierarchy.DestroyMeshContainer(MeshContainer container) in J:\trunk\TT.Library.Graphic.SlimDX\source\Primitives\CustomAllocateHierarchy.cs:line 85
       at SlimDX.Direct3D9.IAllocateHierarchyShim.DestroyMeshContainer(IAllocateHierarchyShim* , _D3DXMESHCONTAINER* pMeshContainerToFree)
  InnerException: 

I've dug into the SlimDX sources and it seems to me, that the "PUBLIC" 
Preprocessor Constant is never declared. Without it the public key of 
SlimDX.Tests is not provided to the InternalsVisibleToAttribute in 
AssemblyInfo.cs.
Disassembling SlimDX.dll confirms that the 
InternalsVisibleTo("SlimDX.Tests")-Attribute does not have a public key.

Original issue reported on code.google.com by frauklei...@gmx.net on 11 May 2011 at 6:34

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Mike.Popoloski on 27 May 2011 at 11:54

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2114.

Original comment by Mike.Popoloski on 17 Jul 2011 at 9:28