Issue 118283

Summary: DDEInitiate 20 sec. delay when macro started from cmdline
Product: General Reporter: knobo <bohmer>
Component: codeAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: elish, issues
Version: 3.4.0 Beta (OOo)Keywords: needhelp
Target Milestone: ---   
Hardware: PC   
OS: Windows, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
DDE Server to reproduce the bug
none
Basic script needed to reproduce the bug.
none
The binary DDE server.
none
non-debug version of the DDE server none

Description knobo 2011-07-13 12:48:33 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 knobo 2011-07-13 12:49:26 UTC
Created attachment 76687 [details]
DDE Server to reproduce the bug
Comment 2 knobo 2011-07-13 12:51:41 UTC
Created attachment 76688 [details]
Basic script needed to  reproduce the bug.
Comment 3 knobo 2011-07-13 12:55:49 UTC
Created attachment 76689 [details]
The binary DDE server.
Comment 4 knobo 2011-07-13 13:17:42 UTC
Created attachment 76690 [details]
non-debug version of the DDE server
Comment 5 knobo 2011-07-15 12:28:39 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 6 Oliver-Rainer Wittmann 2012-06-13 12:30:45 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.