User Profile

Collapse

Profile Sidebar

Collapse
noashira
noashira
Last Activity: Nov 29 '09, 01:27 PM
Joined: Aug 12 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • noashira
    replied to C# Semaphore issue
    in .NET
    thanks for your reply
    see the code example
    Code:
              try
                {
                    semCollectionLock.WaitOne();
                    bDidLock = true;
    
    
                    string sKey;
                    
                    stSoapObject = scSystemObject.GetObject()
    
                    // unlock collection
                    semCollectionLock.Release();
    ...
    See more | Go to post
    Last edited by Frinavale; Aug 12 '09, 01:21 PM. Reason: Please post code in [code] ...[/code] tags. Added code tags.

    Leave a comment:


  • noashira
    started a topic C# Semaphore issue
    in .NET

    C# Semaphore issue

    Hi All,

    I'll be happy to get your opinionn this, i have a webservice that uses Semaphore to access shared (VB) resources and i noticed that the semaphore could not make locks using the WaitOne() method, when using it, it throws an exception "Thread was being aborted." after 2 minutes.
    I believe its aprobably a timeout error, but not sure what is the cause..

    Can someone please explain what effects the...
    See more | Go to post
No activity results to display
Show More
Working...