[Ace-users] [ace-users] ACE_Service_Config::process_directive

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Wed Dec 26 08:57:16 CST 2007


Hi,

Thanks for using the PRF.

>ACE VERSION: 5.5.10

Please upgrade to ACE+TAO+CIAO x.6.2 (i.e., ACE 5.6.2, TAO 1.6.2, and
CIAO 0.6.2), which you can download from

http://download.dre.vanderbilt.edu

under the heading: "Latest Beta Kit."

The DOC groups at Washington University, UC Irvine, and Vanderbilt
University only provide "best effort" support for non-sponsors for the
latest release, as described in

http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/docs/ACE-bug-process.html

Thus, if you need more "predictable" help for earlier versions of
ACE+TAO, I recommend that you check out

http://www.dre.vanderbilt.edu/support.html

for a list of companies that will provide you with ACE+TAO commercial
support.

>HOST MACHINE and OPERATING SYSTEM:    winxp
>COMPILER NAME AND VERSION (AND PATCHLEVEL): g++
>THE $ACE_ROOT/ace/config.h FILE : #include "ace/config-win32.h"
>THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
>FILE :platform_macros.GNU
>DESCRIPTION:
>
>in main.cpp:
>...
>ACE_Service_Config *asc;
>...
>asc =  ACE_Service_Config::global();
>asc->close();
>asc->process_directive("dynamic 1 ...");
>...
>
>
>in another.cpp:
>...
>extern ACE_Service_Config *asc;
>...
>asc->process_directive("dynamic 2 ...");
>const ACE_Service_Type *svc_rec = 0;
>if (ACE_Service_Repository::instance()->find("2", &svc_rec) == -1) {
>  ACE_DEBUG((LM_INFO, ACE_TEXT("\Abort.\n")));
>  asc->close();
>  return 0;
>}
>...
>
>
>It will print: Abort.
>
>find returns -1,why?

Perhaps because the process_directive() call failed?  I recommend you
crank up your debugger and figure out what's going on.

Thanks,

        Doug
-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list