Hi, I am getting this exception only under x64 Vista or x64 Windows 7, the same application works correctly under 32bit Windows OS - so my question is this a known bug or limitation for Mono.Cecil under windows x64? I searched the forum and found one message that seem to suggest the problem existed but was fixed. I downloaded latest monocharge tar ball to get latest Mono.Cecil dated Dec 15, 2009.
TIA, Al G Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.] System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count) +0 Mono.Cecil.ReflectionReader.SetInitialValue(FieldDefinition field) +819 Mono.Cecil.AggressiveReflectionReader.ReadInitialValues() +257 Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection(TypeDefinitionCollection types) +151 Mono.Cecil.StructureReader.TerminateAssemblyDefinition(AssemblyDefinition asm) +152 Mono.Cecil.AssemblyDefinition.Accept(IReflectionStructureVisitor visitor) +107 Mono.Cecil.AssemblyFactory.GetAssembly(String file) +116 ClarionCompiler.AST.CASTCompileUnit.LinkChilds() +2428 ClarionCompiler.Compiler.CompileFilesAndSources(String[] args, String[] sources, Boolean bCommandLine, Boolean bASP) +12098 ClarionCompiler.Compiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +38 System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +42 System.Web.Compilation.AssemblyBuilder.Compile() +10860263 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +247 System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +329 System.Web.Compilation.BuildManager.CompileGlobalAsax() +50 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676 [HttpException (0x80004005): Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025 [HttpException (0x80004005): Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11301302 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4338644 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927 -- View this message in context: http://old.nabble.com/exception-from-Mono.Cecil-under-Windows-x64-tp26996334p26996334.html Sent from the Mono - Cecil mailing list archive at Nabble.com. -- -- mono-cecil
