Forms deletes itself

  • Thread starter Thread starter RFOG
  • Start date Start date
R

RFOG

Hello all!

I've a bunch of forms that I create on app startup. But sometimes they are
auto disposed. I don't understand why, because I instantiate them by gcnew
and does not delete until app ends.

--
Visita mi blog principal: http://rfog.blogsome.com
Y este sobre programación: http://geeks.ms/blogs/rfog
Libros, ciencia ficción y programación
========================================
Donde las dan las toman, y callar es bueno.
 
Hello all!

I've a bunch of forms that I create on app startup. But sometimes they
are auto disposed. I don't understand why, because I instantiate them by
gcnew and does not delete until app ends.
I think I've resolved the issue.

It is related to a Windows Forms timer, if form is closed and timer fires
and closes the form, the form is distroyed.


--
Visita mi blog principal: http://rfog.blogsome.com
Y este sobre programación: http://geeks.ms/blogs/rfog
Libros, ciencia ficción y programación
========================================
Donde las dan las toman, y callar es bueno.
 
Because they are garbage collected objects, if they become unreachable, they
will be finalized and the memory reclaimed, even though you don't call
delete.
 
Is any way to elude this?

Because they are garbage collected objects, if they become unreachable,
they
will be finalized and the memory reclaimed, even though you don't call
delete.



--
Visita mi blog principal: http://rfog.blogsome.com
Y este sobre programación: http://geeks.ms/blogs/rfog
Libros, ciencia ficción y programación
========================================
Oye Patxi, ¿que le pasa a la mula que viene llorando?
Nada, que me ha pegado una coz y se la he devuelto.
 
Back
Top