From a245fd31a60b7c222a84c80d528a253e163ccb43 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 May 2006 13:10:30 +0000 Subject: [PATCH] mentioned that the handlers should be allocated on the heap also in ClearHandlers() docs (and not only in AddHandle() section) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/xmlres.tex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/latex/wx/xmlres.tex b/docs/latex/wx/xmlres.tex index c14a210f07..05e6b72dfd 100644 --- a/docs/latex/wx/xmlres.tex +++ b/docs/latex/wx/xmlres.tex @@ -73,7 +73,8 @@ that the handler name is equal to the control's name plus 'XmlHandler', for exam wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. The XML resource compiler (wxxrc) can create include file that contains initialization code for all controls used within the resource. Note that this handler should be -located on heap instead of stack, since it will get destroyed on shutdown. +allocated on the heap, since it will be delete by +\helpref{ClearHandlers}{wxxmlresourceclearhandlers} later. \membersection{wxXmlResource::AttachUnknownControl}\label{wxxmlresourceattachunknowncontrol} @@ -88,7 +89,8 @@ Unknown controls are used in conjunction with . \func{void}{ClearHandlers}{\void} -Removes all handlers. +Removes all handlers and deletes them (this means that any handlers added using +\helpref{AddHandler}{wxxmlresourceaddhandler} must be allocated on the heap). \membersection{wxXmlResource::CompareVersion}\label{wxxmlresourcecompareversion} -- 2.45.2