Paul K
2013-09-03 19:49:41 UTC
Neil, All:
I'm working on multi-view interface and can successfully create multiple
views for the same document (e1 and e2 are two wxStyledTextCtrl controls):
local docpointer = e1:GetDocPointer()
e1:AddRefDocument(docpointer)
e2:SetDocPointer(docpointer)
My question is: when one of the two controls is destroyed, do I need to try
to catch that event and call SCI_RELEASEDOCUMENT on docpointer? I read the
documentation on when ADD/RELEASE should be used (*
http://www.scintilla.org/ScintillaDoc.html#SCI_ADDREFDOCUMENT*<http://www.scintilla.org/ScintillaDoc.html#SCI_ADDREFDOCUMENT>),
but it's not clear if destroy the control does its own (internal) reference
count decrement and I don't want to decrement it too many times. Thank you.
Paul.
I'm working on multi-view interface and can successfully create multiple
views for the same document (e1 and e2 are two wxStyledTextCtrl controls):
local docpointer = e1:GetDocPointer()
e1:AddRefDocument(docpointer)
e2:SetDocPointer(docpointer)
My question is: when one of the two controls is destroyed, do I need to try
to catch that event and call SCI_RELEASEDOCUMENT on docpointer? I read the
documentation on when ADD/RELEASE should be used (*
http://www.scintilla.org/ScintillaDoc.html#SCI_ADDREFDOCUMENT*<http://www.scintilla.org/ScintillaDoc.html#SCI_ADDREFDOCUMENT>),
but it's not clear if destroy the control does its own (internal) reference
count decrement and I don't want to decrement it too many times. Thank you.
Paul.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.