Re: how to remove a programmatically created DateTimePicker

Tech-Archive recommends: Speed Up your PC by fixing your registry



Branco wrote:

Ouch! Maybe those warning to don't edit the message in the reader
itself are true after all. Sorry again for the message being sent
before it's finished. Turning to Notepad, now.

Branco wrote:
Cor Ligthert[MVP] wrote:

OOps, sorry for the unnedited message. Apparently my laptop got a life
of its own and sent the message while it was still being edited. Myff
appfollopgieffs toff efryonneff (takes off foot from mouth).





Branco,

No it does not, the reference has not any more meanings than being a
reference.

Exactly what "does not"? What are you answering to? Please, learn how
to quote when responding to a newsgroup message, this will make
everyone's life easier.

(The garbage collector runs by a time, by instance as there is low memory,
it is not a kind of processor occupier).

I'll do my best trying to translate this phrase, but don't blame me if
the meaning comes out wrong (next time, please try simpler phrases if
English is difficult for you):
"The garbage collector runs in time intervals, for instance when there

(I'll continue as if nothing had happened) =))

"The garbage collector runs in time intervals, for instance when there
is low memory. It's not a kid of" (what? sorry, can't get the meaning
of that).

It should be disposed, but be aware that the method dispose means dispose
unmanaged resources, that has not much to do with disposing an object,
disposing of an object is done by the GC.

I'm perfectly aware of what dispose does: it allows an object to free
resources -- memory handles, file handles, etc) which it may be
holding whithout the need to wait for the garbage collector to kick in
for those resources to be freed. Since the OP is holding reference at
form scope to a control (which means, a window handle, possibly a DC
handle, depending on how the control works, and who know what other
handles), then it does make sense to me that 1) the object myst be
disposed. Itthe variable must be assinged to nothing (that will allow
the GC to collect

<snip>
.



Relevant Pages

  • Re: how to remove a programmatically created DateTimePicker
    ... "The garbage collector runs in time intervals, ... I'm perfectly aware of what dispose does: it allows an object to free ... resources -- memory handles, file handles, etc) which it may be ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Unmanaged pointer cleanup in Managed class
    ... > Newbie question here for disposing of unmanaged resources in MC++.NET. ... > your constructor in MC++ ... You don't need to explicitly call the destructor - the delete expression ... If the unmanaged classes are holding important resources (other than just ...
    (microsoft.public.dotnet.languages.vc)
  • Re: how to remove a programmatically created DateTimePicker
    ... Apparently my laptop got a life ... "The garbage collector runs in time intervals, ... unmanaged resources, that has not much to do with disposing an object, ... disposing of an object is done by the GC. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: how to remove a programmatically created DateTimePicker
    ... unmanaged resources, that has not much to do with disposing an object, ... disposing of an object is done by the GC. ... or another part of the Calendar. ... Private Sub m_picker_DateChanged(ByVal sender As Object, ...
    (microsoft.public.dotnet.languages.vb)
  • GC, Finalization, and thread-specific APIs
    ... How have you handled the finalization of thread-specific unmanaged ... thread-specific API. ... thread-specific resources in a careful manner. ... protected virtual void Dispose(bool disposing) ...
    (microsoft.public.dotnet.general)