Re: Why does this work?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"James Hahn" <jhahn@xxxxxxxxx> schrieb:
No. The difference between what the code is doing and what the compiler is doing is the reason for the warning.

Exactly. This is especially important if the shared member is accessed for an object returned by an expression, which may change the application's state, but the expression gets removed by the compiler:

\\\
Dim c As Color = Foo.DoSomething().AliceBlue
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

.



Relevant Pages

  • Re: accuracy of warning?
    ... object that 'x' is pointing to. ... The reason it is discouraged, is because the compiler is going to treat it ... > The warning itself makes sense mostly. ... > object instance to access a shared member. ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Backups have Shadow Copy Problems
    ... Active backup destination: File ... Reason: The process cannot access the file because it is being used by ... Warning: Unable to open "C:\Documents and Settings\Administrator\Local ... Warning: Unable to open "C:\Program Files\Microsoft SQL ...
    (microsoft.public.windows.server.sbs)
  • Re: Backups HELP!
    ... I have rerun the backup wizard many times, ... Warning: Unable to open "C:\Documents and Settings\Administrator\Local ... Settings\Temporary Internet Files\Content.IE5\desktop.ini" - skipped. ... Reason: Access is denied. ...
    (microsoft.public.windows.server.sbs)
  • Re: Backups HELP!
    ... I have rerun the backup wizard many times, ... Warning: Unable to open "C:\Documents and Settings\Administrator\Local ... Settings\Temporary Internet Files\Content.IE5\desktop.ini" - skipped. ... Reason: Access is denied. ...
    (microsoft.public.windows.server.sbs)
  • RE: Back-up error 5634 - Need help eliminating directory
    ... I excluded the badmail folder in the TrendMicro product. ... backup wizard failed due to some files cannot be accessed. ... | Reason: Access is denied. ...
    (microsoft.public.windows.server.sbs)