To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=83863 Issue #|83863 Summary|UnoRuntime.generateOID() returns different OIDs for th |e same object Component|framework Version|OOo 2.3 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|scripting Assigned to|ab Reported by|mux2005
------- Additional comments from [EMAIL PROTECTED] Thu Nov 22 13:08:09 +0000 2007 ------- The attached document contains an image and a button. When the button is pressed, a BeanShell macro calls UnoRuntime.generateOID() to obtain the OID of the image. All of these calls should return the same value, since the its always the same image. However when you press the button several times the OID changes slightly. From playing around with the issue I believe that as long as the code holds a live reference to the object the OID is fixed, but once the last proxy object is garbage collected, the OID will change on the next call. This bug has severe consequences for any code that stores the OIDs of UNO objects but does not keep proxies alive. Our application for instance stores OIDs in a hashset to remember the objects that have already been processed so that they can be skipped on later passes. The bug causes our application to randomly reprocess objects that have already been processed and skip other objects that have not been processed (because they happen to get an OID previously used by something else). We will attempt to work around this problem by keeping references to all objects alive but this is a complete waste of resources (memory and whatever else proxies have as overhead) and in our experience OOo gets less and less stable the more UNO objects your code is holding, so this is not really a good solution. This issue may be same as issue 32546, but since that issue has no meaningful description and no attached testcase, I ask that you don't close this new issue as duplicate of that issue. This issue may also be related to issue 83484 (in case areSame() is implemented in terms of OID comparision) I've verified this issue with OOo 2.2 under Windows and OOo 2.3 under Linux and Windows. --------------------------------------------------------------------- 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]
