Created attachment 77947 [details] tescase to reproduce the problem Problem description: I program complex macros with complex dialogs in libreoffice. I have found that if you launch from a macro a complex dialog which has interaction with the document (changing values of the cells in a spreadsheet, for example) the invocation of the endExecute function to close dialogs is capable to hang LibreOffice. The probabibility for this to happen seems to be related to the complexity of the dialog, with small dialogs doesn't happen but as more big is the dialog more probable is the error to happen. if the dialog doesn't interact with the document the problem doesn't appear (as far as I know) I have seen the problem in Windows xp and Windows 8, I have not tested it in linux still I have seen the problem in libreoffice 4.0.2 and 3.6.5 I attach a testcase which opens and closes a dialog 10 times. there is a button to do it with a simple dialog where the problem probably will not happen and a button for doing it with a complex dialog where the problem happen normally in the first iteration Steps to reproduce: 1. open the testcase file 2. click the button "Launch TestCase (simple dialog)". the simple dialog will try to open and close 10 times and the cell of the left will show the iteration number 3. click the button "Launch TestCase (complex dialog)". the complex dialog will try to open and close 10 times and the cell of the left will show the iteration number Current behavior: Libreoffice freezes when trying to close the complex dialog programmatically in the step 3 (normally in the first try) Expected behavior: Libreoffice showing and closing the complex dialog 10 times. the tescase could be repeated and infinite number of times withot hanging Operating System: Windows 8 Version: 4.0.2.2 release
tested in linux (fedora 18, libreoffice 3.6.5) and the problem doesn't reproduce. seems a windows specific issue
*** This bug has been marked as a duplicate of bug 59484 ***