[Mono-dev] Patch to StructureReader.cs

Jb Evain mono at evain.net
Wed Oct 4 12:26:16 EDT 2006


Hey Eyal,

Good catch! Please just format the method call as it is everywhere 
before commiting.

Thanks,

Jb

Eyal Alaluf wrote:
> Hi, JB.
> 
> In StructureReader.cs under the rare case when the assembly contains 
> more then
> 1 module the module that is read should also be visited by the 
> StructureReader
> otherwise we get exceptions.
> The DLL that showed this was either System.EnterpriseServices.dll or one
> of the DLLs it uses.
> Please let me know if you have any comments before I commit.
> 
> Eyal.
> 
> 
> ------------------------------------------------------------------------
> 
> Index: Mono.Cecil/StructureReader.cs
> 
> ===================================================================
> 
> --- Mono.Cecil/StructureReader.cs	(revision 66216)
> 
> +++ Mono.Cecil/StructureReader.cs	(working copy)
> 
> @@ -232,6 +232,7 @@
> 
>  							modext.Mvid = module.Image.MetadataRoot.Streams.GuidHeap [mr.Mvid];
>  
>  							modules.Add (modext);
> +							modext.Accept(this);
>  						} catch (ReflectionException) {
>  							throw;
>  						} catch (Exception e) {
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list