vb.net - Why doesn't class become disposed when exiting application? -
i can't remember have been getting error "object disposed exception" time ago, while testing , closing app. need dispose each object manually? or what's proper way of using controls / objects?
the error indicated line in main form:
private th new sellertimerhandler
i error hardly (i can't test it) wonder general idea avoid taking space in memory unnecessarily, not when executing , closing after crashings.
a system.objectdisposedexception
thrown when trying access object disposed. exception has nothing class/an object not being disposed.
when application closes don't need objects/resources windows takes care of you. disposing , garbage collecting of objects needs performed during runtime in order free memory application able continue operate, , not eat ram.
when process running operating system has full knowledge on all system resources using; meaning when process closes, os frees memory used (this applies when process crashes too).
Comments
Post a Comment