Hello,
I am trying to load a project that uses three Managed DirectX 9.0C components: Microsoft.DirectX; Microsoft.DirectX.DirectInput; and Microsoft.DirectX.DirectSound. When Sharp Develop 3.0 loads the DirectSound assembly, I get the following error and the loading of the project aborts:
Error loading code-completion information for Microsoft.DirectX.DirectSound from C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.05.132\Microsoft.DirectX.DirectSound.dll:
Error loading assembly:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Cannot map the rva to any section
at Mono.Cecil.Binary.Image.ResolveVirtualAddress(RVA rva)
at Mono.Cecil.Binary.ImageReader.SetPositionToAddress(RVA address)
at Mono.Cecil.Binary.ImageReader.VisitHintNameTable(HintNameTable hnt)
at Mono.Cecil.Binary.Image.Accept(IBinaryVisitor visitor)
at Mono.Cecil.Binary.ImageReader.Read(String file)
at Mono.Cecil.AssemblyFactory.GetAssembly(String file)
at ICSharpCode.SharpDevelop.Dom.CecilReader.LoadAssembly(String fileName, ProjectContentRegistry registry)
at ICSharpCode.SharpDevelop.Dom.ProjectContentRegistry.LoadProjectContent(String itemInclude, String itemFileName)
at ICSharpCode.SharpDevelop.Dom.ProjectContentRegistry.GetProjectContentForReference(String itemInclude, String itemFileName)
The other two assemblies load fine since I removed the DirectSound assembly and loaded the others individually and the program threw no errors. I tried reinstalling Managed DirectX, assuming that when I installed .NET 3.5 something got linked incorrectly, but this did not solve the problem. The project loads and runs fine in Sharp Develop 2.2.
Thanks for an amazing development IDE nonetheless!
Munawar