To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=67511 Issue #|67511 Summary|Destructor of spell checker implementation is never ca |lled Component|Word processor Version|OOo 2.0.3 Platform|PC URL| OS/Version|Linux Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|ama Reported by|aderigs
------- Additional comments from [EMAIL PROTECTED] Tue Jul 18 07:52:22 -0700 2006 ------- The destructor of an implementation of service `com.sun.star.linguistic2.SpellChecker' is never called. It seems to me that service `com.sun.star.linguistic2.LinguServiceManager' doesn't free all references to such an implementation at Strg-Q (or File -> Exit). I've written a small implementation to demonstrate the behaviour (see attachment). It is a patch based on the CppComponent example. You will get the following output after clicking Tools -> Options... -> Language Settings -> Writing Aids: $ /usr/lib/openoffice/program/swriter Increment reference count: 1 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 queryInterface Increment reference count: 2 com.sun.star.linguistic2.XSpellChecker Decrement reference count: 2 queryInterface Increment reference count: 2 com.sun.star.lang.XServiceInfo queryInterface Increment reference count: 3 com.sun.star.linguistic2.XSupportedLocales getLocales Decrement reference count: 3 Decrement reference count: 2 Decrement reference count: 1 dispose Increment reference count: 1 Increment reference count: 2 Decrement reference count: 2 disposing Decrement reference count: 1 ~MyService2Impl ----------------------------------------------- Increment reference count: 1 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 queryInterface Increment reference count: 2 com.sun.star.lang.XInitialization Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 Increment reference count: 2 Decrement reference count: 2 queryInterface Increment reference count: 2 com.sun.star.linguistic2.XSpellChecker Increment reference count: 3 Decrement reference count: 3 Decrement reference count: 2 queryInterface Increment reference count: 2 com.sun.star.lang.XServiceDisplayName getServiceDisplayName getLocales Increment reference count: 3 Decrement reference count: 3 Clicking Cancel and Strg-Q doesn't decrement the reference counter and therefore the destructor was never called. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
