DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 5 of 5 FirstFirst ... 345
Results 61 to 65 of 65

Thread: Set MyObject=Nothing?

  1. #61
    Mike Culley Guest

    Re: Set MyObject=Nothing?


    Mark,

    I don't think I have explained my point very well, but anytime that you set
    a variables value in code before using it VB optimises out its own set to
    zero.

    In this case the y=0 is optimised out:

    >And I was thinking you were implying:
    >
    >
    >Private Sub B()
    >Dim y As Integer
    >
    > <behind the scenes, VB makes y = 0> <----- this process is
    >optimised out.
    >
    > y = 1
    >
    > .....
    >
    >End Sub




  2. #62
    Dan Barclay Guest

    Re: Set MyObject=Nothing?

    On Tue, 24 Oct 2000 16:33:07 +0100, "Anthony Jones"
    <yadayadayada@msn.com> wrote:

    >Ralph,
    >
    >Which version of VB we talk'in here???


    <gg> This will, undoubtedly, land high on the FAQ.

    Dan
    Language Stability is a *feature* I wish VB had!
    (#6)

  3. #63
    Mark Alexander Bertenshaw Guest

    Re: Set MyObject=Nothing?

    Mike -

    I understand now - thanks!

    Did you discover this by looking at the code in the VS debugger?

    --
    Mark Alexander Bertenshaw
    Programmer/Analyst
    PrimeResponse
    Brentford
    UK

    "Mike Culley" <m_culley@one.net.au> wrote in message
    news:39f636c9$1@news.devx.com...
    >
    > Mark,
    >
    > I don't think I have explained my point very well, but anytime that you

    set
    > a variables value in code before using it VB optimises out its own set to
    > zero.
    >
    > In this case the y=0 is optimised out:
    >
    > >And I was thinking you were implying:
    > >
    > >
    > >Private Sub B()
    > >Dim y As Integer
    > >
    > > <behind the scenes, VB makes y = 0> <----- this process is
    > >optimised out.
    > >
    > > y = 1
    > >
    > > .....
    > >
    > >End Sub

    >
    >




  4. #64
    Michael Culley Guest

    Re: Set MyObject=Nothing?


    Mark,

    I use a disassembler that can be found here, but I think it does the same
    as visual studio:

    http://www.expage.com/page/w32dasm

    Michael Culley


    "Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> wrote:
    >Mike -
    >
    >I understand now - thanks!
    >
    >Did you discover this by looking at the code in the VS debugger?
    >
    >--
    >Mark Alexander Bertenshaw
    >Programmer/Analyst
    >PrimeResponse
    >Brentford
    >UK
    >
    >"Mike Culley" <m_culley@one.net.au> wrote in message
    >news:39f636c9$1@news.devx.com...
    >>
    >> Mark,
    >>
    >> I don't think I have explained my point very well, but anytime that you

    >set
    >> a variables value in code before using it VB optimises out its own set

    to
    >> zero.
    >>
    >> In this case the y=0 is optimised out:
    >>
    >> >And I was thinking you were implying:
    >> >
    >> >
    >> >Private Sub B()
    >> >Dim y As Integer
    >> >
    >> > <behind the scenes, VB makes y = 0> <----- this process is
    >> >optimised out.
    >> >
    >> > y = 1
    >> >
    >> > .....
    >> >
    >> >End Sub

    >>
    >>

    >
    >



  5. #65
    Colin McGuigan Guest

    Re: Set MyObject=Nothing?

    Michael Culley <m_culley@one.net.au> wrote in message
    news:39f77a29$1@news.devx.com...
    >
    > Mark,
    >
    > I use a disassembler that can be found here, but I think it does the same
    > as visual studio:
    >
    > http://www.expage.com/page/w32dasm
    >
    > Michael Culley


    Ah, w32dasm. How long I have yearned to tear out it's small, tiny, hard to
    click buttons and throttle it with them...

    --
    Colin McGuigan




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center