new CSH.DisplayHelpAfterTracking
(
helpBroker.getHelpSet(),
"javax.help.SecondaryWindow",
"Popup"
)
Whenever you close the help window the JHelp instance and all its components
subtree stays in memory - do it few times and you get OutOfMemory exception.
1. BasicFavoritesNavigatorUI hooks itself as HelpSetListener to HelpSet
and never releases the hook
2. JHelp is hookes to HelpSet as HelpSetListener and never releases the hook
3. The StyledDocument inside BasicContentViewerUI.JHEditorPane seems to be
hanging on Styles from the defaultStyles inside HTMLEditorKit.
4. JHelpPrintHandler and its handlers is one big memory leak, somebody here
does not understand how to use WeakHashMap - ONLY THE KEYS are hold via
weak references not the values and if the value has a strong reference to
the key then we have a memory leak
The same problem may happen with javax.help.MainWindow, the only savior there is
the fact that the MainWindow is singleton and it is not recreated on every help
display action.
If you show your help pages using
Whenever you close the help window the JHelp instance and all its components subtree stays in memory - do it few times and you get OutOfMemory exception.
1. BasicFavoritesNavigatorUI hooks itself as HelpSetListener to HelpSet and never releases the hook
2. JHelp is hookes to HelpSet as HelpSetListener and never releases the hook
3. The StyledDocument inside BasicContentViewerUI.JHEditorPane seems to be hanging on Styles from the defaultStyles inside HTMLEditorKit.
4. JHelpPrintHandler and its handlers is one big memory leak, somebody here does not understand how to use WeakHashMap - ONLY THE KEYS are hold via weak references not the values and if the value has a strong reference to the key then we have a memory leak![](https://java.net/jira/images/icons/emoticons/wink.gif)
The same problem may happen with javax.help.MainWindow, the only savior there is the fact that the MainWindow is singleton and it is not recreated on every help display action.
Environment
Operating System: All Platform: All
Affected Versions
[current]