[omniORB] Using an omniORB client with an Excel add-in
david.sansom@db.com
david.sansom@db.com
Wed, 22 Sep 1999 09:21:49 +0000
--0__=5X1C92d6dsEe9CGUwHtnLPOTyw6BEDtZIuWgLE5XDqKwRwAAGp1I7SXB
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Sai-Lai, Mike S.
Many thanks. I went with the StrandScavenger::killOutScavenger() option in my
XLL run-down code, and it works fine.
DS.
(Embedded
image moved S.Lo@uk.research.att.com
to file: 21/09/99 17:52
pic12176.pcx)
To: David Sansom/DMGGM/DMG UK/DeuBa
cc: omniorb-list@uk.research.att.com
Subject: Re: [omniORB] Using an omniORB client with an Excel add-in
This is a known problem. A long answer can be found in:
http://www.uk.research.att.com/omniORB/archives/1999-09/0075.html
A short one is to add the option "-ORBoutConScanPeriod 0" to ORB_init.
Or add this call before calling ORB_init():
omniORB::idleConnectionScanPeriod(omniORB::idleOutgoing,0);
Please let the list know if this solves your problem.
Sai-Lai
>>>>> david sansom writes:
> Trifle obscure perhaps, but here goes:
> Basics:
> omniORB v2.7.1
> Client on NT4.0, compiled with MSVC 5.0 (defined _WINSTATIC for static omniORB
> libraries)
> (Server on Solaris using Sun 4.2 compiler, but not relevant here)
> Excel v8.0
> I'm building an XLL (essentially a windows DLL, used as a MS Excel add-in),
> which will wrap client-side functions for calling my server.
> I'm using the call:
> CORBA::ORB_ptr orb = CORBA::ORB_init(argc,argv,"omniORB2");
> within my XLL function to initialize the ORB.
> The problem I have is that although Excel happily loads the XLL (add-in) and I
> can call my function successfully, when I exit Excel the process never
> terminates. It is as if the ORB is running its own message queue and this
fails
> to shutdown when the DLL unloads. I have reduced my function so that all it
> does is initialize the ORB as above, so I guess it's a fundamental problem.
> I have a stand-alone client app on NT which works just fine.
> Has anyone else had any experience with using omniORB in a DLL on NT ?
--
Sai-Lai Lo S.Lo@uk.research.att.com
AT&T Laboratories Cambridge WWW: http://www.uk.research.att.com
24a Trumpington Street Tel: +44 1223 343000
Cambridge CB2 1QA Fax: +44 1223 313542
ENGLAND
--0__=5X1C92d6dsEe9CGUwHtnLPOTyw6BEDtZIuWgLE5XDqKwRwAAGp1I7SXB
Content-type: application/octet-stream;
name="pic12176.pcx"
Content-Disposition: attachment; filename="pic12176.pcx"
Content-transfer-encoding: base64
CgUBCAAAAABoACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAABaQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAD1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPH
E8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sT
zRPHE8MTwhPwEwzIBgzYE8wTxhPDE8IT7hPOBtcTzBPGE8MTE+wTwgbCBwbCEgbCEgbCEsUG1hPL
E8YTwxMT6hMMwgYHwgLCAwISwgfEEsMCwwbVE8sTxRPDExPpE8MGAwcCBwMCwhLDB8ISwgISwgLD
BtUTyhPFE8MTE+gTwgIHA8ICEw4DDgLDE8USwwLCEMIG1BPKE8UTwxMT5xMCAwcDAg4TDgITwgIS
D8ISD8ISBRICEcICwwbUE8oTxRPCExPmEwYCBwMCDgIOwgLDExITEhPCEg8GxgLDBtMMDAfJE8QT
whMT5hMGwwITBgMCDhLFEw8SE8ISBgIDwhIDEsMGB9MDxwwHxRPDExPlEwYHAhESAg8CwhMPwhMP
xBMPxRIQwgIDAgMCBtMDxwPEDAfDE8IT4RMHwwzCBgLCEhMCDxLIE8MSD8MSwwIQAwIDBgfSDMkD
wgPCDAfCExPbEwfGDMIDDAIHERITEhMSwxMPwxMPwxPDEgIDAgMCwwMCBgzREwfHDMYDDMITE9YT
B8UMyAMGB8ICBhLDAsYTEhMSExIPwhIHAgcCAwUQAgYRBgfSE8UTB8QMwgMM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wH1BMGEgYSBhLLDM4PwwwTDMcTwgfEDAfJE8QTwhMT
xBMHwgzLD9sM0w/GDAfDEwzDEwfEDAfLE8YTwxMTxhMHxAztD8gMBgfIE8QMB84TxxPDE8ITyhMH
xwzbD8sMEAUMBcIMwgYH1RPKE8UTwxMT0RMH2wwGEAYQBhACBQwFDAUMBgwHBgfWE8sTxRPDExPu
EwYMBhAGEAIGDAYMwwYH1xPLE8YTwxMT8BPKBgfYE8wTxhPDExP1E9sTzRPHE8MTwhP1E9sTzRPH
E8MTwhMMAAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD/
/wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8A
AAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A
//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA/wAA
AP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCkgICA
/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vwoKCk
gICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw//vw
oKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw
//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzA
psrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDA
wNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICA
wMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACA
AICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACA
gACA//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////
--0__=5X1C92d6dsEe9CGUwHtnLPOTyw6BEDtZIuWgLE5XDqKwRwAAGp1I7SXB--