2009年1月7日星期三

The issue of Dispose method is called when closing window put oneself in another's position

I play the Dispose method that calls in the OnClosing incident of the mode window that give in, because body of this stature window is medium use resource is more, wired still Cheng moves and so on, think the hand is moved release, I tried, if not the hand is moved release, open ceaselessly, shut child window body, the memory that the process of the program takes up is added only do not decrease, but body of this stature window is shut after returning mother window form, mother window body always twinkles once, estimation is repaint of mother window body, do not know what to method is solved, can release namely child the resource of the window, can make mother window body does not twinkle again. Can the hand is moved release those resource, do not call Dispose to releaseTwinkle as a result of the window system that weigh draw and causes about window body, can try try out double amortize to weigh draw your window body accuses mediumly.
About the problem that release: Line Cheng is like is executive body executive end. This line Cheng can be released automatically. If was not released, the content that reckons the line Cheng that is you is carried out did not carry out an end.
. NET is mandatory. Accordingly, some things become you unused moment, its oneself can be monitored automatically, if had been absent,needed, can reclaim automatically. Of course you also can use Dispose () will do.
With last person view, offer reference.
Continue downstairs. . . . . UpThe ~ in attention

没有评论: