ooMakro.bas is the basic code neded to reproduce the bug. (actually you only nead on line: DDE = DDEInitiate("KNOBO", "SYSTEM") knobodde.cpp is the DDE server that I created to reproduce the bug. This bug was discovered in another program, so I'm happy it was so easy to reproduce it. 1. start OpenOffice.org (don't skip this) 2. start knobodde.exe (tell me if you want a binary version of it) 3. run: soffice.exe "macro:///Standard.Module1.Main()" from a cmdline It should take about 20 sec to run the DDEInitiate function If you run the macro from the macro editor by fex. pressing F5, it takes no time at all (0 sec). If OpenOffice.org is not started befefore you start the macro, it is also almost no delay (maybe about 2 sec. which is also long).
Created attachment 49040 [details] DDE server used to reproduce the bug
Created attachment 49041 [details] Basic macro used to reproduce the bug.
Created attachment 49042 [details] Binary DDE server used to reproduce the bug.
I have debuged this in OOo321, as this is the version I've been able to compile. I have found out where the delay happens (I think). Line 183 in \svtools\source\svdde\ddecli.cxx pImp->hConv = DdeConnect( pInst->hDdeInstCli,*pService,*pTopic, NULL); DdeConnect is not an OpenOffice.org/LibreOffice function. What can I do to make progres now?
I now suspect that the reason for the 20 second delay is that the new soffice.exe process does not open for DDE communication. Debugging the new soffice.bin process in Windows by renaming soffice.bin to soffice.exe and running: "devenv /debugexe soffice.exe macro://Standard.Module1.main()" I could not see that did any DDEInitiate or any other dde functions. Ref. Caolán: Google says "setting up a DDE connection involves sending a message to *every* top-level window to see if it will accept the conversation. You've got a process that is not clearing its message queue" Maybe I should try to start DDE in the new soffice.exe process and see if that helps. What do you think? 1. Where should I but the DDE-initiation 2. Which DDE functions should I use. Is it easy to use LibreOffice buildt inn DDE functions?
[This is an automated message.] This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it started right out as NEW without ever being explicitly confirmed. The bug is changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases. Details on how to test the 3.5.0 beta1 can be found at: http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1 more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Dear bug submitter! Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs. To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem. Yours! Florian