Issue 118283 - DDEInitiate 20 sec. delay when macro started from cmdline
Summary: DDEInitiate 20 sec. delay when macro started from cmdline
Status: UNCONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.4.0 Beta (OOo)
Hardware: PC Windows, all
: P3 Normal with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2011-07-13 12:48 UTC by knobo
Modified: 2014-01-30 19:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
DDE Server to reproduce the bug (4.35 KB, text/plain)
2011-07-13 12:49 UTC, knobo
no flags Details
Basic script needed to reproduce the bug. (254 bytes, text/plain)
2011-07-13 12:51 UTC, knobo
no flags Details
The binary DDE server. (49.50 KB, application/x-dosexec)
2011-07-13 12:55 UTC, knobo
no flags Details
non-debug version of the DDE server (15.00 KB, application/x-dosexec)
2011-07-13 13:17 UTC, knobo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.