To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=63482
                  Issue #:|63482
                  Summary:|PyUNO components block at 2nd time
                Component:|udk
                  Version:|OOo 2.0.2
                 Platform:|PC
                      URL:|
               OS/Version:|All
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|jbu
              Reported by:|pelizzon





------- Additional comments from [EMAIL PROTECTED] Wed Mar 22 03:25:17 -0800 
2006 -------
I attach as trimmed down sample code as possible to reproduce the problem. I 
don't have a linux machine to use gdb, but a friend tried it out and observed 
the same behaviour on linux.

In the sample, whenever a PyUNO object keeps some reference to an "external" 
OOo entity (cursors, text portions, etc.) it makes OOo hang forever when 
trying to run a second time. 

THE SAMPLE: the sample is an old-style uno package that installs some toolbar 
buttons for convenience. You must install it using unopkg. HOWEVER, it is not 
complete for installation: you must add an rdb file for your platform. Build 
the rdb using the project PythonIters.uno.rdb.project.zip in attachment. 

REMARKS:

. all the buttons start an iteration of the text from the point the view 
cursor is. The output is really irrelevant. DO NOT PRESS CANCEL or else the 
blocking behaviour is sure to happen the next time unless "Print Saves!" is 
pressed. It is therefore advisable to start from a point close to the end of 
the text;

. all the buttons activate nearly identical macros. As can be seen in the VB 
source (line 31), the difference between "Iterate" and "Hangs at 2nd time" is 
a mere call oIterFac.cancel(), which simply sets some properties in a python 
object to None (line 301 in PythonIters.py);

. unless cancel is pressed, "Iterate" can be acivated repeatedly with success. 
On the other hand, "Hangs at 2nd time" does its name justice;

. blocking can be avoided by a simple print command before service 
instantiation (i.e. before Init). This is exemplified in the macro 
PrintHealing (VB, line 26) activated by the button "Print Saves!". For 
example, if you push "Hangs at 2nd time" and "Print Saves!" alternately, no 
problem occurs;

. blocking does not appear in step-by-step debugging.

Good luck! Thanks in advance.

Cheers,

Jorge.

---------------------------------------------------------------------
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]

Reply via email to