When to lock application object

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default When to lock application object

    I know you should lock and unlock an application vaiable when updating it
    but should you also lock it prior to reading the value from it?


    My requests will be accessing the variable..

    Thanks,

    Ron Vecchi


    Ron Vecchi Guest

  2. Similar Questions and Discussions

    1. Application Object
      How easy is it for a hacker to access data stored in the Application Object in IIS server. I want to store a decrpyted connection string there rather...
    2. "Expected a dict object" with Acrobat Prof 6.0 = lock up
      Trying to view a PDF from a website (www.skidmorednagenealogy.com)(PDF entitled "Family Genetics Project") Using Adobe Acrobat Professional 6.0...
    3. how to develop an asp.net application to lock web-site to a particular computer?
      Hello, abandon the magic and harness client certificates, it should be good enough for you. -- Michal A. Valasek, Altair Communications,...
    4. How to access the application-object to lock it from session?
      Hi, You try to access non static member from static function. Use HttpContext.Current.Application.Lock (); to solve your situation. Natty...
    5. Object lock identification
      In a nutshell, I have object locking occurring from what appears to be a bad application design and would like to identify specific values that are...
  3. #2

    Default Re: When to lock application object

    You shouldn't need to if it's being locked when values are being updated.


    "Ron Vecchi" <vencenzo@comcast.net> wrote in message
    news:eZIUXt5UDHA.2044@TK2MSFTNGP11.phx.gbl...
    > I know you should lock and unlock an application vaiable when updating it
    > but should you also lock it prior to reading the value from it?
    >
    >
    > My requests will be accessing the variable..
    >
    > Thanks,
    >
    > Ron Vecchi
    >
    >

    Scott M. Guest

  4. #3

    Default Re: When to lock application object

    No, you only need to lock it when writing to it.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Ron Vecchi" <vencenzo@comcast.net> wrote in message
    news:eZIUXt5UDHA.2044@TK2MSFTNGP11.phx.gbl...
    > I know you should lock and unlock an application vaiable when updating it
    > but should you also lock it prior to reading the value from it?
    >
    >
    > My requests will be accessing the variable..
    >
    > Thanks,
    >
    > Ron Vecchi
    >
    >

    Steve C. Orr, MCSD Guest

  5. #4

    Default Re: When to lock application object

    Thanks forthe info


    "Ron Vecchi" <vencenzo@comcast.net> wrote in message
    news:eZIUXt5UDHA.2044@TK2MSFTNGP11.phx.gbl...
    > I know you should lock and unlock an application vaiable when updating it
    > but should you also lock it prior to reading the value from it?
    >
    >
    > My requests will be accessing the variable..
    >
    > Thanks,
    >
    > Ron Vecchi
    >
    >

    Ron Vecchi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139