Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Finding undisposed OS resources

Check out Sleak that is provided with the article.



                                                                                                                                           
                      "Steen Jansdal"                                                                                                      
                      <steen@xxxxxxxxxx>              To:      <platform-swt-dev@xxxxxxxxxxx>                                              
                      Sent by:                        cc:                                                                                  
                      platform-swt-dev-admin@         Subject: [platform-swt-dev] Finding undisposed OS resources                          
                      eclipse.org                                                                                                          
                                                                                                                                           
                                                                                                                                           
                      09/11/02 10:15 AM                                                                                                    
                      Please respond to                                                                                                    
                      platform-swt-dev                                                                                                     
                                                                                                                                           
                                                                                                                                           



I've read the article about why it's not a good idea to dispose OS
resources from the finalizer.

Well written and easy to understand, so I dispose my OS resources.

Unfortunately by forgetting to dispose my OS resources its easy to
make a leaking SWT program.

Is it possible to implement some sort of debug feature that can
tell you that the program contains some undisposed OS resources?

By checking for undisposed OS resources in the finalizer you could
get an indication of that something wasn't disposed.

Steen

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev






Back to the top