On Thu, Dec 16, 2010 at 6:04 PM, Greg Young <[email protected]> wrote: > Each has their own assembly resolver. > I load each independently (this is occurring later calling a resolve where I > am no longer thread per module but I figured things would be loaded at that > point). > > My guess is that they are not, and I need to lock myself at that point on > module.
As Cecil loads pretty much everything on demand, you have to take care of that. You can try to use ReadingMode.Immediate when reading your modules to avoid the lazy loading. If you crash in the MetadataReader, it means that multiple threads are triggering loads from the same module. -- -- mono-cecil
