Bug 39194 - DDEInitiate 20 sec. delay when macro started from cmdline
Summary: DDEInitiate 20 sec. delay when macro started from cmdline
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-13 07:51 UTC by Knut Olav Bøhmer
Modified: 2013-11-14 16:45 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
DDE server used to reproduce the bug (4.35 KB, text/plain)
2011-07-13 07:51 UTC, Knut Olav Bøhmer
Details
Basic macro used to reproduce the bug. (254 bytes, text/plain)
2011-07-13 07:52 UTC, Knut Olav Bøhmer
Details
Binary DDE server used to reproduce the bug. (15.00 KB, application/octet-stream)
2011-07-13 07:53 UTC, Knut Olav Bøhmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Olav Bøhmer 2011-07-13 07:51:10 UTC
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).
Comment 1 Knut Olav Bøhmer 2011-07-13 07:51:44 UTC
Created attachment 49040 [details]
DDE server used to reproduce the bug
Comment 2 Knut Olav Bøhmer 2011-07-13 07:52:14 UTC
Created attachment 49041 [details]
Basic macro used to reproduce the bug.
Comment 3 Knut Olav Bøhmer 2011-07-13 07:53:13 UTC
Created attachment 49042 [details]
Binary DDE server used to reproduce the bug.
Comment 4 Knut Olav Bøhmer 2011-07-15 05:26:12 UTC
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?
Comment 5 Knut Olav Bøhmer 2011-08-01 04:20:59 UTC
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?
Comment 6 Björn Michaelsen 2011-12-23 12:20:35 UTC
[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
Comment 7 Florian Reisinger 2012-08-14 13:57:09 UTC
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
Comment 8 Florian Reisinger 2012-08-14 13:58:31 UTC
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
Comment 9 Florian Reisinger 2012-08-14 14:03:04 UTC
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
Comment 10 Florian Reisinger 2012-08-14 14:05:18 UTC
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