Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • slava 9 posts 29 karma points
    Apr 24, 2015 @ 13:30

    deadlock with DocumentTypes dictionary

    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: ;

  • Dave Woestenborghs 2436 posts 7002 karma points MVP c-trib
    Apr 24, 2015 @ 14:18
    Dave Woestenborghs

    My (and not only mine) is to move away from code first. Save yourself the pain.

    Watch this video for more information :


  • Alex Skrypnyk 4282 posts 15451 karma points MVP
    May 15, 2015 @ 16:43
    Alex Skrypnyk

    Hi Dave,

    Thanks, but it's not a solution, we have to fix deadlocks in existing project, we have the same situation, after rebuild uSiteBuilder application can be freezed. And it isn't depending on something, just app start freezing ))

    Maybe somebody can help ?

    Thanks, Alex

Please Sign in or register to post replies

Write your reply to: