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
    slava
    0

    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:
    http://blogs.msdn.com/b/tess/archive/2009/12/21/high-cpu-in-net-app-using-a-static-generic-dictionary.aspx ;

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Apr 24, 2015 @ 14:18
    Dave Woestenborghs
    0

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

    Watch this video for more information : https://www.youtube.com/watch?v=Hr1irQ0h5J8

    Dave

  • Alex Skrypnyk 6134 posts 23953 karma points MVP 8x admin c-trib
    May 15, 2015 @ 16:43
    Alex Skrypnyk
    0

    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:

Draft