1
Vote

deadlock with DocumentTypes dictionary

description

version 2.0.2.0

Sometimes I have 96% consume in my app, I attached to process and found that several threads are locked at:

private static void FillDocumentTypes(Type baseTypeDocType)

...

DocumentTypes[documentTypeAlias] = type;


another at

public static Type GetDocumentTypeType(string documentTypeAlias)

...

type = DocumentTypes[documentTypeAlias];

DocumentTypes is a static dictionary,
here is the same problem:
http://blogs.msdn.com/b/tess/archive/2009/12/21/high-cpu-in-net-app-using-a-static-generic-dictionary.aspx ;

comments