🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #582

Re: Object locking using Application.Lock()

#582
From: Colonel Tony
Date: Sun, 15 Aug 2004 14:51
27 lines
1542 bytes
use monitor instead, it locks only the object you want protected.

"Sunil.P.Thomas" <sunil@netlinkindia.com> wrote in message
news:41199a3a@newsgroups.borland.com...
> Hi ,
>     In the ASP.NET , consider the following code
>
>     .
>     .
>     Application.Lock()
>     Application("HITS") =      Convert.ToInt(Application("HITS")) + 1
>     Application.UnLock()
>     .
>     .
>
>     Will the execution of the above code block  the access to  all the
> application variables or
>     only to Application("HITS") ?
>
>     Thanks in advance .
>
>             Sunil
>
>
>
>
>
Technical Details
Message-ID: <411f78c6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41199a3a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,ffcc36c2417b295
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Colonel Tony" <tcaduto@amsoftwaredesign.com>
From: "Colonel Tony" <tcaduto@amsoftwaredesign.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <41199a3a@newsgroups.borland.com>
Subject: Re: Object locking using Application.Lock()
Date: Sun, 15 Aug 2004 09:51:48 -0500
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 65.26.202.116
Message-ID: <411f78c6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092581574 65.26.202.116 (15 Aug 2004 07:52:54 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail