CodeSmith Community
Your Code. Your Way. Faster!

Multithreading Problems

Latest post 05-01-2007 3:47 AM by Taliesin. 2 replies.
  • 04-27-2007 11:02 AM

    • elevocm
    • Not Ranked
    • Joined on 04-27-2007
    • Posts 3
    • Points 75

    Multithreading Problems

    Hi there,

    I had some problems in the past with Nettiers and Multithreading that I was able to fix with a patch from Taliesin

     

    http://community.codesmithtools.com/forums/2/20718/ShowThread.aspx

    This issue still seems to be present at the current codebase.Anyone knows if it was addressed?

    This are the errors produced by it:

    "An item with the given key is already present in the dictionary." 

       at Microsoft.Practices.ObjectBuilder.WeakRefDictionary`2.Add(TKey key, TValue value)
       at Microsoft.Practices.ObjectBuilder.Locator.Add(Object key, Object value)
       at Imd.SystemMonitoring.Entities.EntityLocator.Add(String key, Object value) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring.Nettiers\Imd.SystemMonitoring.Entities\EntityLocator.cs:line 32
       at Imd.SystemMonitoring.Entities.EntityManager.StartTracking(String key, IEntity entity, Boolean isTrackingEnabled) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring.Nettiers\Imd.SystemMonitoring.Entities\EntityManager.cs:line 197
       at Imd.SystemMonitoring.Entities.EntityManager.LocateOrCreate[Entity](String key, String typeString, Type entityFactoryType, Boolean isLocatorEnabled) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring.Nettiers\Imd.SystemMonitoring.Entities\EntityManager.cs:line 95
       at Imd.SystemMonitoring.Data.Bases.ComputerProviderBaseCore.Fill(IDataReader reader, TList`1 rows, Int32 start, Int32 pageLength) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring.Nettiers\Imd.SystemMonitoring.Data\Bases\ComputerProviderBaseCore.generated.cs:line 600
       at Imd.SystemMonitoring.Data.SqlClient.SqlComputerProviderBase.GetByComputerId(TransactionManager transactionManager, Int32 computerId, Int32 start, Int32 pageLength, Int32& count) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring.Nettiers\Imd.SystemMonitoring.Data.SqlClient\SqlComputerProviderBase.generated.cs:line 625
       at Imd.SystemMonitoring.Services.ComputerServiceBase.GetByComputerId(Int32 computerId, Int32 start, Int32 pageLength, Int32& totalCount) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring.Nettiers\Imd.SystemMonitoring.Services\ComputerServiceBase.generated.cs:line 165
       at Imd.SystemMonitoring.Services.ComputerServiceBase.GetByComputerId(Int32 computerId) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring.Nettiers\Imd.SystemMonitoring.Services\ComputerServiceBase.generated.cs:line 124
       at Imd.SystemMonitoring.Engine.MonitoringEngine.ExecutePollLogicalDevicesOnComputer(Object state) in C:\VSS\Imd.SystemMonitoring\Source\Imd.SystemMonitoring\Imd.SystemMonitoring.Engine\MonitoringEngine.cs:line 1024
       at Amib.Threading.Internal.WorkItem.ExecuteWorkItem()

    Thanks in advance

    Filed under:
    • Post Points: 5
  • 04-30-2007 4:03 PM In reply to

    • elevocm
    • Not Ranked
    • Joined on 04-27-2007
    • Posts 3
    • Points 75

    Re: Multithreading Problems

    I'm sorry to insist but I'm I the only one with this issues?

     Thanks

    • Post Points: 35
  • 05-01-2007 3:47 AM In reply to

    • Taliesin
    • Top 75 Contributor
    • Joined on 08-12-2003
    • Posts 51
    • Points 1,465

    Re: Multithreading Problems

    No there is definatly a problem with multi threading. But I am not 100% certain that my patch solves all the problems. This definatly needs looking at!

     
    Regards

      Taliesin



     

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems