Hey Jan,

On Wed, Aug 4, 2010 at 12:04 PM, Jan <[email protected]> wrote:
> I just got an out of memory stack trace from a customer:
>
> Error 24 OpenAccess Error: System.OutOfMemoryException: Exception of
> type 'System.OutOfMemoryException' was thrown.
>   at System.Reflection.AssemblyName.nToString()
>   at
> Mono.Cecil.MetadataImporter.TryGetAssemblyNameReference(AssemblyName
> name, AssemblyNameReference& assembly_reference)
>   at Mono.Cecil.MetadataImporter.ImportScope(Assembly assembly)
>   at Mono.Cecil.MetadataImporter.ImportType(Type type,
> IGenericContext context, ImportGenericType import_type)
>   at Mono.Cecil.ModuleDefinition.Import(Type type)
>
> Did you see something like that already? Do you have an idea?

Either it is a bug in the importer (like looping forever allocating
stuff), or it is «simply» a true OOM, if you're importing over and
over, again an again :)

Are you caching the results of Import? Cecil 0.9 doesn't right now.

-- 
Jb Evain  <[email protected]>

-- 
--
mono-cecil

Reply via email to