Search the web
Sign In
New User? Sign Up
ace-users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 42934 - 42963 of 42992   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#42963 From: "Douglas C. Schmidt" <schmidt@...>
Date: Thu Oct 6, 2005 6:55 pm
Subject: Re: Need explanation about ACE Task / Thread
schmidt@...
Send Email Send Email
 
Hi Christian,

>> Please, I need explanation about ACE Task and ACE ThreadManager,
>>
>> ACE VERSION: 5.2

Wow, that's a REALLY old version of ACE.  I recommend that you upgrade
to ACE+TAO x.4.7, which you can download from

http://deuce.doc.wustl.edu/Download.html

under the heading "latest beta kit".

>> PC Pentium 4  3.2Ghz - Windows XP Pro
>> Visual C++ 6.0 sp6
>>
>> A little example to explain my problem :
>>
>> class Task : public ACE_Task_Base
>> {
>>   ...
>>   int open (void *args=0)
>>   {
>>     return activate ();
>>   }
>>   ....
>>   int svc (void)
>>   {
>>     // INIT : create apps window
>>     //********************************
>>     WNDCLASS wndclass;
>>     HINSTANCE hInst;
>>     hInst = NULL;
>>     // Register display window class
>>     ...
>>     ::RegisterClass (&wndclass) ;
>>     ...
>>     m_hWndMain = ::CreateWindow ("name", str, WS_OVERLAPPEDWINDOW,
>>     atx, aty, vsize, hsize, NULL, NULL, hInst, NULL);
>>     ....
>>
>>     // LOOP
>>     //*********
>>     while ( ) {
>>       ...
>>       if (::GetMessage( &msg, NULL, 0, 0 )) <= 0) {
>>         return -1;
>>       }
>>       ...
>>     };
>>   ...
>>   return 0;
>> }
>> ...
>> }
>>
>> In fact, if I take out the Init part of the svc () method
>> and I put in the init method (for exemple in open () method ),
>> the thread doesn't work !
>>
>> Someone could tell me why ???

I think Windows stores the windows information in thread-specific
storage, so you need to make sure that the thread you use t initialize
the window is the same one you use to process of messages.

Take care,

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

#42962 From: "Douglas C. Schmidt" <schmidt@...>
Date: Thu Oct 6, 2005 5:56 pm
Subject: Re: ACE and object instance persistence
schmidt@...
Send Email Send Email
 
Hi Erik,

>> Pardon me if this is too basic a question, but I've search around the
>> net, and haven't really found an answer.
>>
>> Noobie question #4261
>>
>> Can ACE's CDR capabilities be applied to C++ bject persistence,

Sure, you can certainly use CDR for this.  There are examples of how
to do this in the C++NPv1 and C++NPv2 books
<www.cs.wustl.edu/~schmidt/ACE/>.

Take care,

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

#42961 From: "Douglas C. Schmidt" <schmidt@...>
Date: Thu Oct 6, 2005 1:55 pm
Subject: Re: performance of single mutex versus Read/write mutex: any numbers? discuss
schmidt@...
Send Email Send Email
 
Hi Mike,

         Here are my $0.02 worth on this:

. Unless you've got a lot of CPUs, reader/writer locks will be slower than
   a mutex in most cases since they are more complicated.

. Mutexes are usually implemented by hardware instructions on most
   platforms, whereas reader/writer locks are implemented in software.

I suggest you write some simple benchmarks to validate this
empirically on your platform(2).  Any results you read about on the
web will not be as enlightening as the tests you run yourself.

Take care,

         Doug

>> "Mike Winter" <mike.winter@...> wrote in message news:...
>> > If I have a small critical section to access an element of a structure
>> > (queue) and most accesses are reads and once in a blue moon a write (PI
>> > seconds is a nano-century!) occurs where the primary element is
>> > superceded, but only completely superceded when its reference count is
>> > 0(no more readers), I think a single mutex may be overkill. I would think
>> > that a single mutex would be less performant than say a more complex
>> > structure like say a read-write mutex. Then I think about what it takes to
>> > manage a ReadWriteMutex (mutex + reader-count + writing).
>> >
>> > Consider
>> >
>> > struct ReadWriteMutex {
>> >      Mutex    mWriterMutex;    // gets grabbed rarely
>> >      AtomicCounter mReaderCount;  // gets incremented/decremented securely
>> > and fast
>> >      ReaderMutex  mReaderMutex;   // only blocks if mWriterMutex is locked
>> > };
>> >
>> > Thats the context/concept.
>> >
>> > Heres the question: Are there any numbers /papers in the ether that can
>> > point to how the ReaderWriterMutex will compare to the ordinary Mutex?
>> > Links welcomed
>> >
>> > MW
>> >
>> >
>>
>>


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

#42960 From: "Douglas C. Schmidt" <schmidt@...>
Date: Thu Oct 6, 2005 1:16 pm
Subject: Re: a short question
schmidt@...
Send Email Send Email
 
Hi,

> My question is short and simple :) Which operating system is the
> best in your opinion?

There's no easy answer to this question since it all depends on the
requirements you're trying to address, e.g., low cost, ubiquity,
application support, real-time performance, support for large data
centers, etc.  The good thing about using ACE
<www.cs.wustl.edu/~schmidt/ACE.html> is that it doesn't really matter
which OS you use anymore, i.e., you can develop code on one OS and
then easily run it on different one(s).

I personally use Windows, Linux, and Solaris on a regular basis.

Take care,

         Doug

#42959 From: "Anderson, Alan J." <Alan.Anderson@...>
Date: Wed Oct 5, 2005 5:06 pm
Subject: Questions about dynamic streams and modules...
Alan.Anderson@...
Send Email Send Email
 
I hope this isn't too much for one posting... ;)

Thanks,

Al


     ACE VERSION: 5.4.6

     HOST MACHINE and OPERATING SYSTEM:

Intel PIII 500 MHz
384 MB RAM
Windows XP (SP2 w/ all updates)


     TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
     COMPILER NAME AND VERSION (AND PATCHLEVEL):

Arcom Viper PC104 embedded computer
ARM processor
Windows CE 4.20
Embedded Visual C++ 4.0 (SP4)


     THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
     specific file, simply state which one]:

// don't want to include RCS strings in files
// should default to this...
#undef ACE_USE_RCSID

#include "config-win32.h"


     THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
     use a link to a platform-specific file, simply state which one
     (unless this isn't used in this case, e.g., with Microsoft Visual
     C++)]:

Not used


     CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
     (used by MPC when you generate your own makefiles):

Not used


     AREA/CLASS/EXAMPLE AFFECTED:

ACE_Module<>, ACE_Stream<>, CCM_App, and others...

     DOES THE PROBLEM AFFECT:

         EXECUTION
	 COMPILATION


     SYNOPSIS:

Looking for stream usage with ACE_Service_Config.

     DESCRIPTION:

My application is built as a set of intercommunicating tasks (ACE_Task<>
children).  The initial  implementation created a stream and pushed modules
created from these tasks--this was done internally in  the application. 
Recently, I decided to convert this to a more dynamic application, and all of
the  tasks are now built in shared libraries and loaded into the stream using a
svc.conf file.  This led me  to several general questions that don't seem to be
addressed in the 3 major ACE books, and the  ASX/CCM_App example doesn't provide
answers either.

Let me start by saying that the application is written to run on both XP and CE.
For all of the  following discussion, I've been working on XP, i.e. I haven't
attempted to make any of this work on CE,  although that is the long term plan.

First, does the stream declaration with svc.conf allow for the removal and
addition of new services?  If  so, what's the syntax?  In my scenario, I have
several services, one is the "main" service that is  pushed onto the stream
first, i.e. at bottom of stream.  After processing messages, it sends its reply 
back UP the stream, so that the other services can receive the reply.  Most of
the other services do  little more than receive messages from a source (e.g.
socket, serial, etc.) and send messages to the  source, so their order is
immaterial.  What I'd like to be able to do is add (and remove) services as 
devices are added (or removed), e.g. plug a sensor into a serial port then
dynamically load the service  into the stream, so that its data is processed
correctly.  Note this is manual in the sense that I  physically have to plug in
the sensor, and then I would manually call reconfigure on the application 
(maybe using ACE_Service_Manager or something)--i.e. I don't want!
  my app to automatically detect the  sensor and automatically load the service.

So, the question is what's the syntax in the svc.conf to add this service to my
stream given the  following was in my svc.conf at application startup?  Note: in
this case, PacketServer is the service at  the "bottom" of the stream (i.e. it
handles everything and passes them back up the stream), and the  PacketListener
receives messages to/from a socket (UDP in this case).  There might be several 
PacketListeners (all listening on different ports) and there might be other
devices as well  (SerialListener--possibly multiple, for example).

	 #
	 static ACE_Service_Manager "-d -p 4911"

	 stream dynamic PSApp STREAM *PacketServerLib:make_PSStream() active
	 {
		 dynamic PacketServer Module *PacketServerLib:make_PSModule()
		 dynamic PacketListener Module *PacketListener:make_PLModule() "-p 65505"
	 }
	 #

If I want to add the SerialListener to this stream, can I just do...

	 #
	 stream PSApp
	 {
		 dynamic SerialListener Module *SerialListener:make_SLModule() "-c COM1"
	 }
	 #

The answer is yes, because I tried this, but then, suppose I want to insert the
SerialListener in a  specific place?  How would I do this?  Will something like
the following insert it in the right place?

	 #
	 stream PSApp
	 {
		 PacketServer
		 dynamic SerialListener Module *SerialListener:make_SLModule() "-c COM1"
		 #PacketListener
	 }
	 #

I haven't tried this for reasons you'll see below, but I'm guessing it works
because if I just do...

	 #
		 dynamic SerialListener Module *SerialListener:make_SLModule() "-c COM1"
	 #

How will it know where to put it?  The insert method on ACE_Stream<> only needs
the previous name, so it  seems that this should work.

Does the following work for removing a service?

	 #
	 stream dynamic PSApp
	 {
		 remove PacketListener
	 }
	 #

I tried this, and it seems to throw an exception because ACE_Task<>::close()
gets called twice.  I'm  guessing there's a "don't delete" flag somewhere, but I
haven't run it down yet.

The CCM_App doesn't go through adding/removing services in detail, and APG
hardly says anything about  streams in svc.conf. C++NPv2 doesn't say much about
streams in svc.conf either.  Is there a better way  to do this?  Or is there a
different example to follow?

Second, is there a way to relate to a statically allocated stream?  I mentioned
PacketServer is the  "main" service.  I want to make sure this is alway running
and always at the "bottom" of the stream.  If  it's dynamically allocated, then
it could "accidentially" get removed using svc.conf, so my initial idea  was to
statically allocate it (within the executable) and add it to a stream also
created within the  executable.  Then, have the other services loaded
dynamically and added to my stream in the application.   If I did this, could I
use...

	 #
	 stream dynamic PSApp_Internal
	 {
		 dynamic SerialListener Module *SerialListener:make_SLModule() "-c COM1"
	 }
	 #

to add a service to the stream that was allocated inside the application?  In
other words, does the name  "PSApp_Internal" relate to anything in the
structures used to manage the services.

This leads to the third question, how are static streams, modules, and tasks
managed in this situtation?   I came across a couple postings in the user group
asking about static streams, but the reply was  (basically) ...
	 "no one really does this, so if you want to you'll have to figure it out on
your own, but it's  theoretically possible if you follow how the dynamic streams
work."

And another thing, it seems that since this would be pretty common, i.e.
creating dynamic streams and  modules--given the power of the streams construct,
I'm surprised there isn't a MODULE_DECLARE/DEFINE  macro that declares a module
given two task objects. Maybe I'm missing something, but I think this would  be
pretty easy.  Likewise, a STREAM_DECLARE/DEFINE macro might be in order.  How
are these deleted since  there isn't a "gobbler" function declared, or do I have
to do this?  The CCM_App doesn't declare a  gobbler function, but then it never
really deletes the stream or the module.

Finally, my SerialListener is written as a single object that inherits from
ACE_Task<> and reads from  the serial port.  It's given the serial port in the
commandline arguments (i.e. svc.conf arguments), and  what I'd like to be able
to do is create multiple instances of this object.  I may have several similar 
devices attached to different serial ports, so I was hoping I could simply
create a new entry in  svc.conf for the second module, but give it a different
argument (e.g. "-c COM3" etc.).  Unfortunately,  ACE_Module<> requires a name
during construction, so if I wanted to instantiate 2 modules with the same 
tasks but different arguments to the task's init call, I have to provide two
separate names to the  ACE_Module<> constructors.  Is there an easy way to
handle this?  Since I can't pass arguments to the  factory function, I could
automatically generate a name, but that name needs to be referenced in the 
svc.conf file.  Is there a way to pass arguments to the factor!
y function--it doesn't appear to be the  case given that function declaration is
defined as ACE_Service_Factory_Ptr.  Am I forced to define  multiple factory
functions for each module pair--seems pointless given that the only change is
the  arguments passed in?

     REPEAT BY:

See above...


     SAMPLE FIX/WORKAROUND:


----------------------------------------------------------------------------
Alan Anderson, Ph.D.
Research Scientist
Materials and Metallurgical Engineering Dept.
South Dakota School of Mines and Technology
501 E. Saint Joseph St.
Rapid City, SD 57701
(605) 394-2466; (605) 394-3369 (fax)
alan.anderson@...

#42958 From: Sandeep Deshpande <sandeep.bvb@...>
Date: Wed Oct 5, 2005 1:05 pm
Subject: Re: ACE_File_Lock -- memory not freed?
sandeep.bvb@...
Send Email Send Email
 

Please read appl1Lock  as LockFile.
 
Thanks,
Sandeep
 
On 10/5/05, Sandeep Deshpande <sandeep.bvb@...> wrote:
Hi,

OS: RH EL (AS 3.0)
Hardware:
[root@CISCART27 sdi]# uname -a
Linux CISCART27 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17
17:52:23 EDT 2005 i686 i686 i386 GNU/Linux
ACE lib version: 5.3.5

We are using ACE_File_Lock in our application as
below.
ACE_File_Lock checkLock(LockFile, RDONLY,0,0);

if (checkLock.tryacquire () != -1) {
    Printf("tryacquir failed");
    return false;
  }

Here appl1Lock is actually created by some other
application & we want to check if that file is present
(which means that app is running).

The application is working fine. But in some cases the
LockFile may not be actaully be there & hence we see
error like "ACE_File_LOck::ACE_File_Lock <name of
LockFile> no such file or directory", which is also
ok.

But, when the application is run with valgrind(memory
leak checking tool), it reports that memory allocated
with strdup() in the constructor ACE_File_Lock is not
being freed for some cases.

I looked at the ACE code. Though I did not look at it
thoroughly, I felt in our case memory allocated using
strdup in ACE_OS::flock_init() in
ACE_File_Lock()::open() is not being freed in
ACE_OS::flock_destory().

From OS.i file
----------------------------------------------
#if defined (CHORUS)
      // Are we the owner?
      if (lock->process_lock_ && lock->lockname_ != 0)
        {
          // Only destroy the lock if we're the owner
          ACE_OS::mutex_destroy (lock->process_lock_);
          ACE_OS::munmap (lock->process_lock_,
                          sizeof (ACE_mutex_t));
          if (unlink_file)
            ACE_OS::shm_unlink (lock->lockname_);
          ACE_OS::free (ACE_static_cast (void *,
                                       
ACE_const_cast (ACE_TCHAR *,
                                                     
  lock->lockname_)));
        }
      else if (lock->process_lock_)
        // Just unmap the memory.
        ACE_OS::munmap (lock->process_lock_,
                        sizeof (ACE_mutex_t));
-----------------------------------------------

I think in our case since we are not the owner of lock
file, lock->process_lock_ is not initialized and hence
memory allocated to lock->lockname is not freed.

Please let me know if this is true.
Forgive me if I am wrong & explain how it works.

Thanks in advance,
Sandeep


#42957 From: Sandeep Deshpande <sandeep.bvb@...>
Date: Wed Oct 5, 2005 5:13 am
Subject: ACE_File_Lock -- memory not freed?
sandeep.bvb@...
Send Email Send Email
 
Hi,

OS: RH EL (AS 3.0)
Hardware:
[root@CISCART27 sdi]# uname -a
Linux CISCART27 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17
17:52:23 EDT 2005 i686 i686 i386 GNU/Linux
ACE lib version: 5.3.5

We are using ACE_File_Lock in our application as
below.
ACE_File_Lock checkLock(LockFile, RDONLY,0,0);

if (checkLock.tryacquire() != -1) {
    Printf("tryacquir failed");
    return false;
  }

Here appl1Lock is actually created by some other
application & we want to check if that file is present
(which means that app is running).

The application is working fine. But in some cases the
LockFile may not be actaully be there & hence we see
error like "ACE_File_LOck::ACE_File_Lock <name of
LockFile> no such file or directory", which is also
ok.

But, when the application is run with valgrind(memory
leak checking tool), it reports that memory allocated
with strdup() in the constructor ACE_File_Lock is not
being freed for some cases.

I looked at the ACE code. Though I did not look at it
thoroughly, I felt in our case memory allocated using
strdup in ACE_OS::flock_init() in
ACE_File_Lock()::open() is not being freed in
ACE_OS::flock_destory().

From OS.i file
----------------------------------------------
#if defined (CHORUS)
      // Are we the owner?
      if (lock->process_lock_ && lock->lockname_ != 0)
        {
          // Only destroy the lock if we're the owner
          ACE_OS::mutex_destroy (lock->process_lock_);
          ACE_OS::munmap (lock->process_lock_,
                          sizeof (ACE_mutex_t));
          if (unlink_file)
            ACE_OS::shm_unlink (lock->lockname_);
          ACE_OS::free (ACE_static_cast (void *,
                                       
ACE_const_cast (ACE_TCHAR *,
                                                     
  lock->lockname_)));
        }
      else if (lock->process_lock_)
        // Just unmap the memory.
        ACE_OS::munmap (lock->process_lock_,
                        sizeof (ACE_mutex_t));
-----------------------------------------------

I think in our case since we are not the owner of lock
file, lock->process_lock_ is not initialized and hence
memory allocated to lock->lockname is not freed.

Please let me know if this is true.
Forgive me if I am wrong & explain how it works.

Thanks in advance,
Sandeep

#42956 From: ZhangZhiming <paopaoerzhang@...>
Date: Wed Oct 5, 2005 4:40 am
Subject: RE: ACE & SNMP
paopaoerzhang@...
Send Email Send Email
 
Snmp++
Or
ASNMP in the ACE.

Best wishes,
Paopaoer


-----Original Message-----
From: owner-ace-users@... [mailto:owner-ace-users@...]
On Behalf Of Carlo Feliciano Aureus
Sent: 2005Äê10ÔÂ5ÈÕ 11:10
To: ace-users@...
Subject: [ace-users] ACE & SNMP


Hi,

Does ACE support SNMP? If not, is there any facility
included in ace for managing an application remotely?

Regards,
Chino




______________________________________________________
Yahoo! for Good
Donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

#42955 From: Carlo Feliciano Aureus <chinoaureus@...>
Date: Wed Oct 5, 2005 3:10 am
Subject: ACE & SNMP
chinoaureus@...
Send Email Send Email
 
Hi,

Does ACE support SNMP? If not, is there any facility
included in ace for managing an application remotely?

Regards,
Chino




______________________________________________________
Yahoo! for Good
Donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

#42954 From: Adrian Tulloch <my-ace-sub@...>
Date: Tue Oct 4, 2005 11:50 pm
Subject: RE: Removing open files on Windows
my-ace-sub@...
Send Email Send Email
 
> -------- Original Message --------
> Subject: [ace-users] Removing open files on Windows
> From: "Douglas C. Schmidt" <schmidt@...>
> Date: Wed, October 05, 2005 7:45 am
> To: ace-users@...
>
> Hi Folks,
>
>         On UNIX you can remove a file that's been open()'d be another
> process and the OS will let you do this and will actually delete the
> file when the final handle is closed.  Is there some way to do this on
> Windows, as well?

I don't know any out of the box methods to do this.  However, there are
a couple of tricks which may help you here.

If you want to delete a file which another process has held open, recent
versions of handle.exe from those sysinternals guys
(http://www.sysinternals.com/Utilities/Handle.html) can help out.
Handle.exe now takes a new command-line option, -c which closes files
underneath a process.

Also, if you want to do something like the unix temporary file trick,
where you create/open a temporary file, then unlink it, you may want to
look at the FILE_FLAG_DELETE_ON_CLOSE flag which you can pass to
CreateFile (in the dwFlagsandAttributes parameter).  As the name
suggests, this flag means that the underlying file is deleted when you
do a CloseHandle() on the file handle which CreateFile returns.
Although that sounds very useful, it isn't a panacea.  The trouble is
that anyone else who may open the file when you've got it open has to
also specify FILE_FLAG_DELETE_ON_CLOSE, or their open will fail.

#42953 From: "Douglas C. Schmidt" <schmidt@...>
Date: Tue Oct 4, 2005 9:45 pm
Subject: Removing open files on Windows
schmidt@...
Send Email Send Email
 
Hi Folks,

         On UNIX you can remove a file that's been open()'d be another
process and the OS will let you do this and will actually delete the
file when the final handle is closed.  Is there some way to do this on
Windows, as well?  The default behavior is to not let you remove an
open()'d file, but I'm curious as to whether there's a special system
call or option to a system call that'll enable this?

Thanks,

         Doug

#42952 From: "Eccles, Paul" <paul.eccles@...>
Date: Mon Oct 3, 2005 9:29 pm
Subject: ACE_OS::allocation_granularity
paul.eccles@...
Send Email Send Email
 
ACE VERSION: 5.4.5

HOST MACHINE and OPERATING SYSTEM: Windows 2000/XP and Solaris 8

TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):

CONTENTS OF $ACE_ROOT/ace/config.h:

CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU
(unless this isn't used in this case, e.g., with Microsoft Visual C++):

     AREA/CLASS/EXAMPLE AFFECTED:

     DOES THE PROBLEM AFFECT:
     SYNOPSIS:

Why does ACE_OS::allocation_granularity return ACE_OS::getpagesize if
not WIN32?  I would think the granularity would be 1.

     DESCRIPTION:
[Detailed description of problem.  Don't just say "<blah> doesn't work,
here's a fix," explain what your program does to get to the <blah>
state. ]

     REPEAT BY:

     SAMPLE FIX/WORKAROUND:

#42951 From: "Steve Huston" <shuston@...>
Date: Mon Oct 3, 2005 4:33 pm
Subject: Upcoming "How to Use ACE Effectively" Training Class: October 17-19, 2005
shuston@...
Send Email Send Email
 
Only one more week to sign up for this class! If
you've been putting your enrollment off, hurry so
you don't miss out!

ACE is very powerful and very flexible. But to
finish your projects on time and get your nights and
weekends back, it may be useful to have an expert help
you make the best use of ACE's power. We can help
sort it all out and get you programming with ACE
like a pro! You have only a week left to sign up for our
How to Use ACE Effectively class, October
17-19, 2005 in Waltham, MA (in the Boston area).
This is a 3-day class, priced at US$1,250 including
continental breakfast, snacks and lunch each day.
Each attendee receives a copy of the class slides
and a copy of The ACE Programmer's Guide (one
of the authors, Steve Huston, will be teaching the class
and would be happy to sign anyone's book).

For more information and to sign up, please click on
the "October 17-19, 2005" link at http://
www.riverace.com/training.htm.
You'll also find a PDF file for multiple enrollments
and for payment other than by credit card. That form
is also available here: http://www.riverace.com/classreg_oct_2005.pdf.

Also, please note that attendees get a 10% savings
on ACE Annual Support purchased when you pay for
your class! Take advantage of this opportunity to
make the most of your new ACE knowledge and keep
the momentum going back at the office with quick
answers and direction on your project's issues!
See you at the class!

--
Steve Huston, Riverace Corporation
"How to Use ACE Effectively" class Oct 17-19!
See http://www.riverace.com/training.htm

#42950 From: "Steve Huston" <shuston@...>
Date: Mon Oct 3, 2005 4:33 pm
Subject: Upcoming "How to Use ACE Effectively" Training Class: October 17-19, 2005
shuston@...
Send Email Send Email
 
Only one more week to sign up for this class! If
you've been putting your enrollment off, hurry so
you don't miss out!

ACE is very powerful and very flexible. But to
finish your projects on time and get your nights and
weekends back, it may be useful to have an expert help
you make the best use of ACE's power. We can help
sort it all out and get you programming with ACE
like a pro! You have only a week left to sign up for our
How to Use ACE Effectively class, October
17-19, 2005 in Waltham, MA (in the Boston area).
This is a 3-day class, priced at US$1,250 including
continental breakfast, snacks and lunch each day.
Each attendee receives a copy of the class slides
and a copy of The ACE Programmer's Guide (one
of the authors, Steve Huston, will be teaching the class
and would be happy to sign anyone's book).

For more information and to sign up, please click on
the "October 17-19, 2005" link at http://
www.riverace.com/training.htm.
You'll also find a PDF file for multiple enrollments
and for payment other than by credit card. That form
is also available here: http://www.riverace.com/classreg_oct_2005.pdf.

Also, please note that attendees get a 10% savings
on ACE Annual Support purchased when you pay for
your class! Take advantage of this opportunity to
make the most of your new ACE knowledge and keep
the momentum going back at the office with quick
answers and direction on your project's issues!
See you at the class!

--
Steve Huston, Riverace Corporation
"How to Use ACE Effectively" class Oct 17-19!
See http://www.riverace.com/training.htm

#42949 From: "Douglas C. Schmidt" <schmidt@...>
Date: Sat Oct 1, 2005 9:38 am
Subject: Re: A stupid question about CODgram
schmidt@...
Send Email Send Email
 
Hi Tao,

>> I am using ACE_SOCK_CODgram in my program to
>> send a bunch of packets to the same destination.

To ensure that we have proper version/platform/compiler information,
please make sure you fill out the appropriate problem report form
(PRF), which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of ACE+TAO.  Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
error-prone and slows down our responsiveness.

Thanks,

         Doug

>> What I did related with the socket is pretty simple:
>>    1 new the object of ACE_SOCK_DGram codgram;
>>    2 codgram->open(remote_addr,
>>           ACE_ADDR::any,
>>           ACE_PROTOCOL_FAMILY_INET,
>>           0, 1);
>>    3 use codgram->send(buf, size) to send packets
>>
>> The weird thing is: only half of the packets can be sent out, the other
>> half got error -1. and they are in pattern:
>>     success, -1, success, -1, success, -1, ......
>>
>> If I changed to use ACE_SOCK_DGram, everything is OK.
>>
>> Is there anything I missed? Thanks in advance!
>>
>> Tao
>>


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

#42948 From: "Douglas C. Schmidt" <schmidt@...>
Date: Fri Sep 30, 2005 10:03 pm
Subject: Re: link error at ACE_SVC_Handler / ACE_Task
schmidt@...
Send Email Send Email
 
Hi Rodrigo,

         Thanks for using the PRF.

>> ACE VERSION: 5.3.1

Please upgrade to ACE+TAO x.4.7, which you can download from

http://deuce.doc.wustl.edu/Download.html

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 beta kit, as described
in

http://www.cs.wustl.edu/~schmidt/ACE_wrappers/docs/ACE-bug-process.html

Thus, if you need more "predictable" help for ACE 5.3.1, I recommend
that you check out

http://www.cs.wustl.edu/~schmidt/commercial-support.html

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

Thanks,

         Doug


>>     HOST MACHINE and OPERATING SYSTEM:
>>  XP Professional SP2
>>         If on Windows based OS's, which version of
>> WINSOCK do you
>>         use?:
>>
>>  MSWSOCK
>>
>>     TARGET MACHINE and OPERATING SYSTEM, if different
>> from HOST:
>>     COMPILER NAME AND VERSION (AND PATCHLEVEL):
>>
>>  No
>>
>>     CONTENTS OF $ACE_ROOT/ace/config.h:
>>
>>  ---- Dumping ----
>>
>> #ifndef ACE_CONFIG_H
>> #define ACE_CONFIG_H
>>
>> /* We are under Win95/98 */
>> #define ACE_HAS_WINNT4 0
>>
>> #if defined (ACE_AS_STATIC_LIBS)
>> # define _STLP_USE_STATIC_LIB
>> #else
>> # define _STLP_USE_DYNAMIC_LIB
>> #endif /* ACE_AS_STATIC_LIB */
>>
>> #if defined ( _DEBUG ) && !defined( NDEBUG )
>> # define _STLP_DEBUG
>> #endif
>>
>> #include <ace/config-win32.h>
>>
>> #if defined ( ACE_HAS_STANDARD_CPP_LIBRARY )
>>     #undef ACE_HAS_STANDARD_CPP_LIBRARY
>>     #define ACE_HAS_STANDARD_CPP_LIBRARY        1
>> #endif
>>
>> #if defined ( ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB )
>>     #undef ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB
>>     #define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB   1
>> #endif
>>
>> #if defined ( ACE_LACKS_IOSTREAM_FX )
>>     #undef ACE_LACKS_IOSTREAM_FX
>>     #define ACE_LACKS_IOSTREAM_FX               1
>> #endif
>>
>> #if defined ( ACE_LACKS_LINEBUFFERED_STREAMBUF )
>>     #undef ACE_LACKS_LINEBUFFERED_STREAMBUF
>>     #define ACE_LACKS_LINEBUFFERED_STREAMBUF    1
>> #endif
>>
>> #if defined ( ACE_LACKS_UNBUFFERED_STREAMBUF )
>>     #undef ACE_LACKS_UNBUFFERED_STREAMBUF
>>     #define ACE_LACKS_UNBUFFERED_STREAMBUF      1
>> #endif
>>
>> #undef ACE_HAS_GNU_CSTRING_H
>> #undef ACE_USES_OLD_IOSTREAMS
>>
>> #endif /* ACE_CONFIG_H */
>>
>>
>>  ---- End dump ----
>>
>>     AREA/CLASS/EXAMPLE AFFECTED:
>>
>> A dll failed at linker step. I think that this it`s
>> cause of the
>> templates / Exports, Im pretty young with systems and
>> programming
>> but I think that the linker says:
>> ACE_Task<..> isnt export, and ACE_Svc_Handler is
>> trying to use it in
>> your code... I have no idea what to do with this cause
>> I cant find
>> the declaration of ACE_Export in the declaration of
>> the class
>> ACE_Svc_Handler.
>>
>>
>>     DOES THE PROBLEM AFFECT:
>>         COMPILATION?
>> 	 No.
>>         LINKING?
>> 	 Yes.
>>             On Unix systems, did you run make
>> realclean first?
>>         EXECUTION?
>> 	 No.
>>         OTHER (please specify)?
>> 	 No.
>>
>>     SYNOPSIS:
>> Sorry.. Lets start again!
>>
>>     DESCRIPTION:
>> Another tip ( I suposed that its a tip.. ) Its that I
>> must define
>> the macro: ACE_HAS_TEMPLATE_TYPEDEFS to pass some
>> compiler errors
>> but I dont know what this macro affect really !!
>> Another macros thats I using and invoque ACE are:
>> ACE_HAS_DLL=1;ACE_USE_RCSID=0.
>>
>>     REPEAT BY:
>> I dont know what more can I say.. I just press build
>> and get the
>> error that I posted before.
>>  --- "Douglas C. Schmidt" <schmidt@...>
>> escribió:
>>
>> > Hi Rodrigo,
>> >
>> > >> Hi!, Sorry .. I have a very poor English soo ..
>> > I`ll
>> > >> try to do the best I can.
>> > >> I`m starting using ACE, but since 2 days I cant
>> > >> continue learning. I`m getting some bug and I
>> > hope
>> > >> that someone here can help me.
>> >
>> > To ensure that we have proper
>> > version/platform/compiler information,
>> > please make sure you fill out the appropriate
>> > problem report form
>> > (PRF), which is in
>> >
>> > $ACE_ROOT/PROBLEM-REPORT-FORM
>> > $TAO_ROOT/PROBLEM-REPORT-FORM
>> >
>> > or in
>> >
>> > $ACE_ROOT/BUG-REPORT-FORM
>> > $TAO_ROOT/BUG-REPORT-FORM
>> >
>> > in older versions of ACE+TAO.  Make sure to include
>> > this information
>> > when asking any questions about ACE+TAO since
>> > otherwise we have to
>> > "guess" what version/platform/compiler/options
>> > you've using, which is
>> > error-prone and slows down our responsiveness.
>> >
>> > >> My system like`s: XP Professional SP2, and my
>> > develops
>> > >> are in Microsoft Visual Studio .Net 2003 ( VC7 ).
>> >
>> >
>> > BTW, are you using VC7.1 or VC7?  You need to be
>> > using VC 7.1.
>> >
>> > Thanks,
>> >
>> >         Doug
>> >
>> > >> Im using the ACE_Svc_Handler to create a new
>> > class. My
>> > >> code looks like:
>> > >>
>> > >> template< class BASE_STREAM>
>> > >> class Frontend_Svc_Handler: public
>> > >> ACE_Svc_Handler<BASE_STREAM, ACE_MT_SYNCH>
>> > >> {....
>> > >>
>> > >> I think that there be a problem with the use of
>> > >> templates here but.. I cant solve it.
>> > >>
>> > >> I dump the output of the link step here:
>> > >>
>> > >> -- ERROR 1 --
>> > >> server error LNK2019: unresolved external symbol
>> > >> "__declspec(dllimport) public: __thiscall
>> > >> ACE_Task<class ACE_MT_SYNCH>::ACE_Task<class
>> > >> ACE_MT_SYNCH>(class ACE_Thread_Manager *,class
>> > >> ACE_Message_Queue<class ACE_MT_SYNCH> *)"
>> > >>
>> >
>>
(__imp_??0?$ACE_Task@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manager@@PAV?$ACE_Messag\
e_Queue@VACE_MT_SYNCH@@@@@Z)
>> > >> referenced in function "public: __thiscall
>> > >> ACE_Svc_Handler<class ACE_SOCK_Stream,class
>> > >> ACE_MT_SYNCH>::ACE_Svc_Handler<class
>> > >> ACE_SOCK_Stream,class ACE_MT_SYNCH>(class
>> > >> ACE_Thread_Manager *,class
>> > ACE_Message_Queue<class
>> > >> ACE_MT_SYNCH> *,class ACE_Reactor *)"
>> > >>
>> >
>>
(??0?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manag\
er@@PAV?$ACE_Message_Queue@VACE_MT_SYNCH@@@@PAVACE_Reactor@@@Z)
>> > >>
>> > >> -- ERROR 2 --
>> > >> server error LNK2019: unresolved external symbol
>> > >> "__declspec(dllimport) public: virtual __thiscall
>> > >> ACE_Task<class ACE_MT_SYNCH>::~ACE_Task<class
>> > >> ACE_MT_SYNCH>(void)"
>> > >> (__imp_??1?$ACE_Task@VACE_MT_SYNCH@@@@UAE@XZ)
>> > >> referenced in function "public: virtual
>> > __thiscall
>> > >> ACE_Svc_Handler<class ACE_SOCK_Stream,class
>> > >> ACE_MT_SYNCH>::~ACE_Svc_Handler<class
>> > >> ACE_SOCK_Stream,class ACE_MT_SYNCH>(void)"
>> > >>
>> >
>> (??1?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@UAE@XZ)
>> > >>
>> > >> Well, that`s all folks.. Sorry about my English
>> > and
>> > >> thanks you soo much !!
>> > >>
>> > >> Rodrigo Fidalgo.
>> > >>
>> > >> end
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> >
>> ___________________________________________________________
>> >
>> > >> 1GB gratis, Antivirus y Antispam
>> > >> Correo Yahoo!, el mejor correo web del mundo
>> > >> http://correo.yahoo.com.ar
>> > >>
>> >
>> >
>> > --
>> > Dr. Douglas C. Schmidt
>> > Professor and Associate Chair
>> > Electrical Engineering and Computer Science  TEL:
>> > (615) 343-8197
>> > Institute for Software Integrated Systems    WEB:
>> > www.dre.vanderbilt.edu/~schmidt
>> > Vanderbilt University, Nashville TN, 37203   NET:
>> > d.schmidt@...
>> >
>>
>>
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________
>> 1GB gratis, Antivirus y Antispam
>> Correo Yahoo!, el mejor correo web del mundo
>> http://correo.yahoo.com.ar
>>


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

#42947 From: Rodrigo Fidalgo <rodtheater@...>
Date: Fri Sep 30, 2005 9:30 pm
Subject: link error at ACE_SVC_Handler / ACE_Task
rodtheater@...
Send Email Send Email
 
ACE VERSION: 5.3.1

     HOST MACHINE and OPERATING SYSTEM:
	 XP Professional SP2
         If on Windows based OS's, which version of
WINSOCK do you
         use?:

	 MSWSOCK

     TARGET MACHINE and OPERATING SYSTEM, if different
from HOST:
     COMPILER NAME AND VERSION (AND PATCHLEVEL):

	 No

     CONTENTS OF $ACE_ROOT/ace/config.h:

	 ---- Dumping ----

#ifndef ACE_CONFIG_H
#define ACE_CONFIG_H

/* We are under Win95/98 */
#define ACE_HAS_WINNT4 0

#if defined (ACE_AS_STATIC_LIBS)
# define _STLP_USE_STATIC_LIB
#else
# define _STLP_USE_DYNAMIC_LIB
#endif /* ACE_AS_STATIC_LIB */

#if defined ( _DEBUG ) && !defined( NDEBUG )
# define _STLP_DEBUG
#endif

#include <ace/config-win32.h>

#if defined ( ACE_HAS_STANDARD_CPP_LIBRARY )
     #undef ACE_HAS_STANDARD_CPP_LIBRARY
     #define ACE_HAS_STANDARD_CPP_LIBRARY        1
#endif

#if defined ( ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB )
     #undef ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB
     #define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB   1
#endif

#if defined ( ACE_LACKS_IOSTREAM_FX )
     #undef ACE_LACKS_IOSTREAM_FX
     #define ACE_LACKS_IOSTREAM_FX               1
#endif

#if defined ( ACE_LACKS_LINEBUFFERED_STREAMBUF )
     #undef ACE_LACKS_LINEBUFFERED_STREAMBUF
     #define ACE_LACKS_LINEBUFFERED_STREAMBUF    1
#endif

#if defined ( ACE_LACKS_UNBUFFERED_STREAMBUF )
     #undef ACE_LACKS_UNBUFFERED_STREAMBUF
     #define ACE_LACKS_UNBUFFERED_STREAMBUF      1
#endif

#undef ACE_HAS_GNU_CSTRING_H
#undef ACE_USES_OLD_IOSTREAMS

#endif /* ACE_CONFIG_H */


	 ---- End dump ----

     AREA/CLASS/EXAMPLE AFFECTED:

A dll failed at linker step. I think that this it`s
cause of the
templates / Exports, Im pretty young with systems and
programming
but I think that the linker says:
ACE_Task<..> isnt export, and ACE_Svc_Handler is
trying to use it in
your code... I have no idea what to do with this cause
I cant find
the declaration of ACE_Export in the declaration of
the class
ACE_Svc_Handler.


     DOES THE PROBLEM AFFECT:
         COMPILATION?
		 No.
         LINKING?
		 Yes.
             On Unix systems, did you run make
realclean first?
         EXECUTION?
		 No.
         OTHER (please specify)?
		 No.

     SYNOPSIS:
Sorry.. Lets start again!

     DESCRIPTION:
Another tip ( I suposed that its a tip.. ) Its that I
must define
the macro: ACE_HAS_TEMPLATE_TYPEDEFS to pass some
compiler errors
but I dont know what this macro affect really !!
Another macros thats I using and invoque ACE are:
ACE_HAS_DLL=1;ACE_USE_RCSID=0.

     REPEAT BY:
I dont know what more can I say.. I just press build
and get the
error that I posted before.
  --- "Douglas C. Schmidt" <schmidt@...>
escribió:

> Hi Rodrigo,
>
> >> Hi!, Sorry .. I have a very poor English soo ..
> I`ll
> >> try to do the best I can.
> >> I`m starting using ACE, but since 2 days I cant
> >> continue learning. I`m getting some bug and I
> hope
> >> that someone here can help me.
>
> To ensure that we have proper
> version/platform/compiler information,
> please make sure you fill out the appropriate
> problem report form
> (PRF), which is in
>
> $ACE_ROOT/PROBLEM-REPORT-FORM
> $TAO_ROOT/PROBLEM-REPORT-FORM
>
> or in
>
> $ACE_ROOT/BUG-REPORT-FORM
> $TAO_ROOT/BUG-REPORT-FORM
>
> in older versions of ACE+TAO.  Make sure to include
> this information
> when asking any questions about ACE+TAO since
> otherwise we have to
> "guess" what version/platform/compiler/options
> you've using, which is
> error-prone and slows down our responsiveness.
>
> >> My system like`s: XP Professional SP2, and my
> develops
> >> are in Microsoft Visual Studio .Net 2003 ( VC7 ).
>
>
> BTW, are you using VC7.1 or VC7?  You need to be
> using VC 7.1.
>
> Thanks,
>
>         Doug
>
> >> Im using the ACE_Svc_Handler to create a new
> class. My
> >> code looks like:
> >>
> >> template< class BASE_STREAM>
> >> class Frontend_Svc_Handler: public
> >> ACE_Svc_Handler<BASE_STREAM, ACE_MT_SYNCH>
> >> {....
> >>
> >> I think that there be a problem with the use of
> >> templates here but.. I cant solve it.
> >>
> >> I dump the output of the link step here:
> >>
> >> -- ERROR 1 --
> >> server error LNK2019: unresolved external symbol
> >> "__declspec(dllimport) public: __thiscall
> >> ACE_Task<class ACE_MT_SYNCH>::ACE_Task<class
> >> ACE_MT_SYNCH>(class ACE_Thread_Manager *,class
> >> ACE_Message_Queue<class ACE_MT_SYNCH> *)"
> >>
>
(__imp_??0?$ACE_Task@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manager@@PAV?$ACE_Messag\
e_Queue@VACE_MT_SYNCH@@@@@Z)
> >> referenced in function "public: __thiscall
> >> ACE_Svc_Handler<class ACE_SOCK_Stream,class
> >> ACE_MT_SYNCH>::ACE_Svc_Handler<class
> >> ACE_SOCK_Stream,class ACE_MT_SYNCH>(class
> >> ACE_Thread_Manager *,class
> ACE_Message_Queue<class
> >> ACE_MT_SYNCH> *,class ACE_Reactor *)"
> >>
>
(??0?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manag\
er@@PAV?$ACE_Message_Queue@VACE_MT_SYNCH@@@@PAVACE_Reactor@@@Z)
> >>
> >> -- ERROR 2 --
> >> server error LNK2019: unresolved external symbol
> >> "__declspec(dllimport) public: virtual __thiscall
> >> ACE_Task<class ACE_MT_SYNCH>::~ACE_Task<class
> >> ACE_MT_SYNCH>(void)"
> >> (__imp_??1?$ACE_Task@VACE_MT_SYNCH@@@@UAE@XZ)
> >> referenced in function "public: virtual
> __thiscall
> >> ACE_Svc_Handler<class ACE_SOCK_Stream,class
> >> ACE_MT_SYNCH>::~ACE_Svc_Handler<class
> >> ACE_SOCK_Stream,class ACE_MT_SYNCH>(void)"
> >>
>
(??1?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@UAE@XZ)
> >>
> >> Well, that`s all folks.. Sorry about my English
> and
> >> thanks you soo much !!
> >>
> >> Rodrigo Fidalgo.
> >>
> >> end
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
>
___________________________________________________________
>
> >> 1GB gratis, Antivirus y Antispam
> >> Correo Yahoo!, el mejor correo web del mundo
> >> http://correo.yahoo.com.ar
> >>
>
>
> --
> Dr. Douglas C. Schmidt
> Professor and Associate Chair
> Electrical Engineering and Computer Science  TEL:
> (615) 343-8197
> Institute for Software Integrated Systems    WEB:
> www.dre.vanderbilt.edu/~schmidt
> Vanderbilt University, Nashville TN, 37203   NET:
> d.schmidt@...
>








___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar

#42946 From: "Douglas C. Schmidt" <schmidt@...>
Date: Fri Sep 30, 2005 8:33 pm
Subject: Re: Hello !
schmidt@...
Send Email Send Email
 
Hi Rodrigo,

>> Hi!, Sorry .. I have a very poor English soo .. I`ll
>> try to do the best I can.
>> I`m starting using ACE, but since 2 days I cant
>> continue learning. I`m getting some bug and I hope
>> that someone here can help me.

To ensure that we have proper version/platform/compiler information,
please make sure you fill out the appropriate problem report form
(PRF), which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of ACE+TAO.  Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
error-prone and slows down our responsiveness.

>> My system like`s: XP Professional SP2, and my develops
>> are in Microsoft Visual Studio .Net 2003 ( VC7 ).

BTW, are you using VC7.1 or VC7?  You need to be using VC 7.1.

Thanks,

         Doug

>> Im using the ACE_Svc_Handler to create a new class. My
>> code looks like:
>>
>> template< class BASE_STREAM>
>> class Frontend_Svc_Handler: public
>> ACE_Svc_Handler<BASE_STREAM, ACE_MT_SYNCH>
>> {....
>>
>> I think that there be a problem with the use of
>> templates here but.. I cant solve it.
>>
>> I dump the output of the link step here:
>>
>> -- ERROR 1 --
>> server error LNK2019: unresolved external symbol
>> "__declspec(dllimport) public: __thiscall
>> ACE_Task<class ACE_MT_SYNCH>::ACE_Task<class
>> ACE_MT_SYNCH>(class ACE_Thread_Manager *,class
>> ACE_Message_Queue<class ACE_MT_SYNCH> *)"
>>
(__imp_??0?$ACE_Task@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manager@@PAV?$ACE_Messag\
e_Queue@VACE_MT_SYNCH@@@@@Z)
>> referenced in function "public: __thiscall
>> ACE_Svc_Handler<class ACE_SOCK_Stream,class
>> ACE_MT_SYNCH>::ACE_Svc_Handler<class
>> ACE_SOCK_Stream,class ACE_MT_SYNCH>(class
>> ACE_Thread_Manager *,class ACE_Message_Queue<class
>> ACE_MT_SYNCH> *,class ACE_Reactor *)"
>>
(??0?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manag\
er@@PAV?$ACE_Message_Queue@VACE_MT_SYNCH@@@@PAVACE_Reactor@@@Z)
>>
>> -- ERROR 2 --
>> server error LNK2019: unresolved external symbol
>> "__declspec(dllimport) public: virtual __thiscall
>> ACE_Task<class ACE_MT_SYNCH>::~ACE_Task<class
>> ACE_MT_SYNCH>(void)"
>> (__imp_??1?$ACE_Task@VACE_MT_SYNCH@@@@UAE@XZ)
>> referenced in function "public: virtual __thiscall
>> ACE_Svc_Handler<class ACE_SOCK_Stream,class
>> ACE_MT_SYNCH>::~ACE_Svc_Handler<class
>> ACE_SOCK_Stream,class ACE_MT_SYNCH>(void)"
>> (??1?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@UAE@XZ)
>>
>> Well, that`s all folks.. Sorry about my English and
>> thanks you soo much !!
>>
>> Rodrigo Fidalgo.
>>
>> end
>>
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________
>> 1GB gratis, Antivirus y Antispam
>> Correo Yahoo!, el mejor correo web del mundo
>> http://correo.yahoo.com.ar
>>


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

#42945 From: Rodrigo Fidalgo <rodtheater@...>
Date: Fri Sep 30, 2005 8:20 pm
Subject: Hello !
rodtheater@...
Send Email Send Email
 
Hi!, Sorry .. I have a very poor English soo .. I`ll
try to do the best I can.
I`m starting using ACE, but since 2 days I cant
continue learning. I`m getting some bug and I hope
that someone here can help me.

My system like`s: XP Professional SP2, and my develops
are in Microsoft Visual Studio .Net 2003 ( VC7 ).

Im using the ACE_Svc_Handler to create a new class. My
code looks like:

template< class BASE_STREAM>
class Frontend_Svc_Handler: public
ACE_Svc_Handler<BASE_STREAM, ACE_MT_SYNCH>
{....

I think that there be a problem with the use of
templates here but.. I cant solve it.

I dump the output of the link step here:

-- ERROR 1 --
server error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
ACE_Task<class ACE_MT_SYNCH>::ACE_Task<class
ACE_MT_SYNCH>(class ACE_Thread_Manager *,class
ACE_Message_Queue<class ACE_MT_SYNCH> *)"
(__imp_??0?$ACE_Task@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manager@@PAV?$ACE_Messag\
e_Queue@VACE_MT_SYNCH@@@@@Z)
referenced in function "public: __thiscall
ACE_Svc_Handler<class ACE_SOCK_Stream,class
ACE_MT_SYNCH>::ACE_Svc_Handler<class
ACE_SOCK_Stream,class ACE_MT_SYNCH>(class
ACE_Thread_Manager *,class ACE_Message_Queue<class
ACE_MT_SYNCH> *,class ACE_Reactor *)"
(??0?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@QAE@PAVACE_Thread_Manag\
er@@PAV?$ACE_Message_Queue@VACE_MT_SYNCH@@@@PAVACE_Reactor@@@Z)

-- ERROR 2 --
server error LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
ACE_Task<class ACE_MT_SYNCH>::~ACE_Task<class
ACE_MT_SYNCH>(void)"
(__imp_??1?$ACE_Task@VACE_MT_SYNCH@@@@UAE@XZ)
referenced in function "public: virtual __thiscall
ACE_Svc_Handler<class ACE_SOCK_Stream,class
ACE_MT_SYNCH>::~ACE_Svc_Handler<class
ACE_SOCK_Stream,class ACE_MT_SYNCH>(void)"
(??1?$ACE_Svc_Handler@VACE_SOCK_Stream@@VACE_MT_SYNCH@@@@UAE@XZ)

Well, that`s all folks.. Sorry about my English and
thanks you soo much !!

Rodrigo Fidalgo.

end







___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar

#42944 From: "Steve Huston" <shuston@...>
Date: Fri Sep 30, 2005 7:03 pm
Subject: RE: Windows CE and threads
shuston@...
Send Email Send Email
 
Hi folks,

Actually, Riverace is adding support for CE (Pocket PC 2003 and
Windows Mobile 5) with Visual Studio 2005 for ACE 5.5. The next beta
will probably have some things working.

Our annual support customers can get early access to it if desired.

Please contact me to discuss our services and how we can help you.

Thanks,

-Steve

--
Steve Huston, Riverace Corporation
"How to Use ACE Effectively" class Oct 17-19!
See http://www.riverace.com/training.htm


> -----Original Message-----
> From: owner-ace-users@...
> [mailto:owner-ace-users@...] On Behalf Of Douglas C.
Schmidt
> Sent: Friday, September 30, 2005 2:29 PM
> To: zodiaq@...; ace-users@...
> Subject: Re: [ace-users] Windows CE and threads
>
>
> Hi,
>
>         The DOC group doesn't support Windows CE, so I suggest you
> contact Malcolm Spence <spence_m@...>, whose company OCI
> provides commercial support.
>
> Thanks,
>
>         Doug
>
> >> using embedded visual c++ we are trying to use ACE (5.4.7)
> for both network
> >> and thread management... as for network it is working, we
> have some major
> >> problems with threads... with few changes (like struct tm
> commenting out,
> >> and few other tweaks) we are able to build .dll... but...
> creating most
> >> simple application we get exceptions while spawning new
> threads... look at
> >> this simple piece of code:
> >>
> >> class CTaskTest : public ACE_Task<ACE_MT_SYNCH>
> >> {
> >> public:
> >>   CTaskTest( )
> >>   {
> >>     this->activate (THR_NEW_LWP, 2 );
> >>   }
> >>   int svc( )
> >>   {
> >>     DWORD dwSum = 0;
> >>     for( int i = 3; i < 100; ++i )
> >>     {
> >>       dwSum += GetTickCount( );
> >>       ACE_OS::sleep( 2 );
> >>     }
> >>     return ( int )dwSum;
> >>   }
> >> };
> >>
> >> and here is launching:
> >>   DWORD dwStart = GetTickCount( );
> >>   CTaskTest tTest;
> >>   int iResult = tTest.wait( );
> >>   if( iResult == -1 )
> >>     MessageBox( NULL, L"Failed!", L"Bleeee", MB_OK |
> MB_ICONERROR );
> >>   MessageBox( NULL, L"Finished!", L":]", MB_OK |
> MB_ICONINFORMATION );
> >> I got exception "First chance exception 0x000005", and as
> far I can tell,
> >> problem is not in main program thread, but in newly
> spawned thread... new
> >> thread never enters svc method...
> >>
> >> Any ideas? Please help as we fight these for like a week
> now! Tried to used
> >> different version, through these produce more errors... if
> anyone willing to
> >> help I can provide more data. :)
> >>
> >> --
> >> .:-Dad, do you think there's people on other planets?
>                :.
> >> .:-I don't know, Sparks. But I guess I'd say if it is just
> us...seems like:.
> >> .: an awful waste of space. :
>       Zodiaq   :.
>
>
> --
> Dr. Douglas C. Schmidt                       Professor and
> Associate Chair
> Electrical Engineering and Computer Science  TEL: (615) 343-8197
> Institute for Software Integrated Systems    WEB:
> www.dre.vanderbilt.edu/~schmidt
> Vanderbilt University, Nashville TN, 37203   NET:
> d.schmidt@...
>

#42943 From: "Douglas C. Schmidt" <schmidt@...>
Date: Fri Sep 30, 2005 6:29 pm
Subject: Re: Windows CE and threads
schmidt@...
Send Email Send Email
 
Hi,

         The DOC group doesn't support Windows CE, so I suggest you
contact Malcolm Spence <spence_m@...>, whose company OCI
provides commercial support.

Thanks,

         Doug

>> using embedded visual c++ we are trying to use ACE (5.4.7) for both network
>> and thread management... as for network it is working, we have some major
>> problems with threads... with few changes (like struct tm commenting out,
>> and few other tweaks) we are able to build .dll... but... creating most
>> simple application we get exceptions while spawning new threads... look at
>> this simple piece of code:
>>
>> class CTaskTest : public ACE_Task<ACE_MT_SYNCH>
>> {
>> public:
>>   CTaskTest( )
>>   {
>>     this->activate (THR_NEW_LWP, 2 );
>>   }
>>   int svc( )
>>   {
>>     DWORD dwSum = 0;
>>     for( int i = 3; i < 100; ++i )
>>     {
>>       dwSum += GetTickCount( );
>>       ACE_OS::sleep( 2 );
>>     }
>>     return ( int )dwSum;
>>   }
>> };
>>
>> and here is launching:
>>   DWORD dwStart = GetTickCount( );
>>   CTaskTest tTest;
>>   int iResult = tTest.wait( );
>>   if( iResult == -1 )
>>     MessageBox( NULL, L"Failed!", L"Bleeee", MB_OK | MB_ICONERROR );
>>   MessageBox( NULL, L"Finished!", L":]", MB_OK | MB_ICONINFORMATION );
>> I got exception "First chance exception 0x000005", and as far I can tell,
>> problem is not in main program thread, but in newly spawned thread... new
>> thread never enters svc method...
>>
>> Any ideas? Please help as we fight these for like a week now! Tried to used
>> different version, through these produce more errors... if anyone willing to
>> help I can provide more data. :)
>>
>> --
>> .:-Dad, do you think there's people on other planets?                     :.
>> .:-I don't know, Sparks. But I guess I'd say if it is just us...seems like:.
>> .: an awful waste of space. :                                    Zodiaq   :.


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

#42942 From: "Douglas C. Schmidt" <schmidt@...>
Date: Fri Sep 30, 2005 1:08 pm
Subject: Re: Thread pool + reactor
schmidt@...
Send Email Send Email
 
Hi Marcus,

To ensure that we have proper version/platform/compiler information,
please make sure you fill out the appropriate problem report form
(PRF), which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of ACE+TAO.  Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
error-prone and slows down our responsiveness.

>> I made a simple web-server in ace so I could just include a few classes
>> and enable programs to have a web interface for checking status etc
>> (concerns mainly batch programs etc).
>>
>> It works mostly nice, but there is one thing I havent figured out. I
>> have a pool of threads and one Reactor. The threads tasks include
>> writing to file (if client is post:ing a file) reading a (file if user
>> downloads a file etc).

What kind of Reactor are you using, e.g., ACE_Select_Reactor,
ACE_TP_Reactor, ACE_WFMO_Reactor, etc?

>> However, I could not pass the ACE_Svc_Handler derived object to the
>> workers queue since the Reactor could kill the object at any time. So I
>> have another object that points out the Svc object and has a reference
>> counter to it (ie on the other object). When the workers pops a object
>> reference counter of other object decreases and if it hits 0 it means
>> the Svc object is gone and the object is deleted. in close() in Svc
>> object I set a flag in "other object" to say that Svc has gone down and
>> that it is a bad idea to put anything to its queues.
>>
>> But it isn't entirely stable. Sometimes VS reports access to free:ed
>> memory. I have posa2 and the three ace books, but I haven't found
>> anything obvious for this. JAWSvX I didn't understand, which is why I
>> wrote my own.
>>
>> Could someone please give me a push in the right direction?

There are examples of how to handle the reference counting necessary
to do this correctly in Chapter 6 of C++NPv2
<www.cs.wustl.edu/~schmidt/ACE/book2>.

Take care,

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

#42941 From: "Russell Mora" <russell_mora@...>
Date: Fri Sep 30, 2005 12:00 pm
Subject: RE: ACE_Singleton on AIX
russell_mora@...
Send Email Send Email
 
If you were on a linux machine I would have said that you were using the
-Bsymbolic option when linking (from the linux ld man page):

        `-Bsymbolic'
            When  creating  a  shared  library, bind references to global
            symbols to the definition within the shared library, if  any.
            Normally,  it  is  possible  for  a  program linked against a
            shared library to override the definition within  the  shared
            library.   This  option  is  only meaningful on ELF platforms
            which support shared libraries.


AIX seems to have an equivalent "symbolic" option (from the AIX ld man
page):

   symbolic Assigns the symbolic attribute to most symbols exported
without an
   explicit attribute. For more information, see "Attributes of Exported
Symbols" .
   The default is the nosymbolic- option. This option only applies to AIX
Version
   4.2 or later.

And then later:

   When you use run-time linking, a reference to a symbol in the same
module can
   only be rebound if the symbol is exported with the proper attribute.
References
   to symbols with the symbolic attribute cannot be rebound. References
to symbols
   with the nosymbolic attribute can be rebound. References to symbols
with the
   nosymbolic- attribute can be rebound if the symbols are variables. For
function


HTH

Cheers,
Russell.

> -----Original Message-----
> From: owner-ace-users@...
> [mailto:owner-ace-users@...] On Behalf Of Johnny Willemsen
> Sent: Friday, September 30, 2005 3:05 AM
> To: 'Krishna_Subramaniam'; ace-users@...
> Subject: RE: [ace-users] ACE_Singleton on AIX
>
> Hi,
>
> Maybe the linker has some options to resolve this, do you use the ACE
> generated makefiles?
>
> Regards,
>
> Johnny Willemsen
> Remedy IT
> Postbus 101
> 2650 AC  Berkel en Rodenrijs
> The Netherlands
> www.theaceorb.nl / www.remedy.nl
>
> > Hi All,
> >
> >
> >
> > I'm new to this group and I'm using ACE for one of my
> > projects. We had used xlC_r (7.0) for compiling ACE on AIX
> > 5.3. We are facing a problem with regards to ACE_Singleton.
> > Currently we have an ACE_Singleton in a shared library, which
> > is used by other shared libraries and executables. When we
> > use more than 1 shared library (using the Singleton object),
> > linking against the executable, there seems to be more than 1
> > singleton objects in memory. Has anyone faced same issues on
> > AIX? If so, am I doing something that I should not? This is
> > kind of a show stopper in the project, please suggest.
> >
> >
> >
> > We also tried compiling ACE with g++ (3.3.2), but our
> > applications failed to link with the libACE.a, with the
> > following error message
> >
> >
> >
> > "Undefined symbol: ACE_Singleton<Config,
> > ACE_Thread_Mutex>::singleton_".
> >
> >
> >
> > Can anyone help us on the same?
> >
> >
> >
> > Thanks in advance,
> >
> > Krishna
> >
> >
> >
> >
> >
> > DISCLAIMER:
> > This email (including any attachments) is intended for the
> > sole use of the intended recipient/s and may contain material
> > that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any
> > review or reliance by others or copying or distribution or
> > forwarding of any or all of the contents in this message is
> > STRICTLY PROHIBITED. If you are not the intended recipient,
> > please contact the sender by email and delete all copies;
> > your cooperation in this regard is appreciated..
> >
>
>

#42940 From: "Johnny Willemsen" <jwillemsen@...>
Date: Fri Sep 30, 2005 7:04 am
Subject: RE: ACE_Singleton on AIX
jwillemsen@...
Send Email Send Email
 
Hi,

Maybe the linker has some options to resolve this, do you use the ACE
generated makefiles?

Regards,

Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl

> Hi All,
>
>
>
> I'm new to this group and I'm using ACE for one of my
> projects. We had used xlC_r (7.0) for compiling ACE on AIX
> 5.3. We are facing a problem with regards to ACE_Singleton.
> Currently we have an ACE_Singleton in a shared library, which
> is used by other shared libraries and executables. When we
> use more than 1 shared library (using the Singleton object),
> linking against the executable, there seems to be more than 1
> singleton objects in memory. Has anyone faced same issues on
> AIX? If so, am I doing something that I should not? This is
> kind of a show stopper in the project, please suggest.
>
>
>
> We also tried compiling ACE with g++ (3.3.2), but our
> applications failed to link with the libACE.a, with the
> following error message
>
>
>
> "Undefined symbol: ACE_Singleton<Config,
> ACE_Thread_Mutex>::singleton_".
>
>
>
> Can anyone help us on the same?
>
>
>
> Thanks in advance,
>
> Krishna
>
>
>
>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the
> sole use of the intended recipient/s and may contain material
> that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any
> review or reliance by others or copying or distribution or
> forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient,
> please contact the sender by email and delete all copies;
> your cooperation in this regard is appreciated..
>

#42939 From: "Johnny Willemsen" <jwillemsen@...>
Date: Fri Sep 30, 2005 7:03 am
Subject: RE: Building ACE under AIX
jwillemsen@...
Send Email Send Email
 
Hi,

The 5.4.4 version is to old to build with xlC. We made several changes in
the code and in the IDL compiler to get things compiling with 6.0.0.15.
These changes are available in the x.4.5 version of ACE/TAO. For AIX 64bit
we have had some problems with runtime crashes, these where fixed in x.4.6.
We also experienced some problems with using xlC as preprocesor, as work
around we used GCC as preprocessor for the IDL compiler but we wanted to
report the issue to IBM but didn't have a support contract to report it.

Regards,

Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl

> -----Original Message-----
> From: owner-ace-users@...
> [mailto:owner-ace-users@...] On Behalf Of Ian C White
> Sent: donderdag 29 september 2005 22:15
> To: ace-users@...
> Subject: Fw: [ace-users] Building ACE under AIX
>
> >>    ACE VERSION: 5.4.4
> >>
> >>    HOST MACHINE and OPERATING SYSTEM:
> >>        IBM Power5 running AIX 5.3
> >>
> >>    COMPILER NAME AND VERSION (AND PATCHLEVEL): xlC v7, ld
> (/usr/bin/ld,
>
> >> not gnu)
> >>
> >>    THE $ACE_ROOT/ace/config.h FILE:
> >>         config-aix-5.x.h
> >>
> >>    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:
>              ssl = 0
>            rmcast = 1
>              exceptions = 1
>            debug = 1
>            inline = 1
>            optimize = 0
>            buildbits = 64
> >>         threads = 1
> >>         shared_libs=0
> >>         static_libs=1
>            CCFLAGS += -bbigtoc
> >>         include $ACE_ROOT/include/makeinclude/platform_aix_ibm.GNU
> >>
> >>    CONTENTS OF
> $ACE_ROOT/bin/MakeProjectCreator/config/default.features
> >>    ssl=0 qos=1 cidl=0 rwho=0 sctp=0
> >>
> >>    AREA/CLASS/EXAMPLE AFFECTED:
> >>        TAO CosLoadBalancing
> >>
> >>    DOES THE PROBLEM AFFECT:
> >>        COMPILATION? Yes
> >>        LINKING? No
> >>            On Unix systems, did you run make realclean first? No
> >>
> >>    SYNOPSIS:
> >>        Compiler error: PortableInterceptor not defined in
> LB_ORTC.h
> >>
> >>    DESCRIPTION:
> I build ACE and TAO by running make. For
> GNUmakefile.CosLoadBalancing,
> while compiling LB_ORTC.cpp, the following error occurs:
>
> LB_ORTC.h, 109: The qualifier PortableInterceptor is not
> defined in the
> current scope.
> LB_ORTC.cpp, 239: An expression of type
> TAO_LB::ObjectReferenceFactory*
> cannot be converted to type CORBA::ValueBase*
>
> These files were generated by the IDL compiler.
>
> Thanks for your help.
>
> Ian
>
>
> Ian Carter White
> Software Engineer
> Integrated Defense Systems - Raytheon
> 350 Lowell St. Andover, MA 01810
> 978. 470.9908
> ian_c_white@...
>
>
>

#42938 From: "Krishna_Subramaniam" <Krishna_Subramaniam@...>
Date: Fri Sep 30, 2005 5:41 am
Subject: ACE_Singleton on AIX
Krishna_Subramaniam@...
Send Email Send Email
 

Hi All,

 

I’m new to this group and I’m using ACE for one of my projects. We had used xlC_r (7.0) for compiling ACE on AIX 5.3. We are facing a problem with regards to ACE_Singleton. Currently we have an ACE_Singleton in a shared library, which is used by other shared libraries and executables. When we use more than 1 shared library (using the Singleton object), linking against the executable, there seems to be more than 1 singleton objects in memory. Has anyone faced same issues on AIX? If so, am I doing something that I should not? This is kind of a show stopper in the project, please suggest.

 

We also tried compiling ACE with g++ (3.3.2), but our applications failed to link with the libACE.a, with the following error message

 

“Undefined symbol: ACE_Singleton<Config, ACE_Thread_Mutex>::singleton_”.

 

Can anyone help us on the same?

 

Thanks in advance,

Krishna

 

 

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated..


#42937 From: Ian C White <Ian_C_White@...>
Date: Thu Sep 29, 2005 8:14 pm
Subject: Fw: Building ACE under AIX
Ian_C_White@...
Send Email Send Email
 
>>    ACE VERSION: 5.4.4
>>
>>    HOST MACHINE and OPERATING SYSTEM:
>>        IBM Power5 running AIX 5.3
>>
>>    COMPILER NAME AND VERSION (AND PATCHLEVEL): xlC v7, ld (/usr/bin/ld,

>> not gnu)
>>
>>    THE $ACE_ROOT/ace/config.h FILE:
>>         config-aix-5.x.h
>>
>>    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:
              ssl = 0
            rmcast = 1
              exceptions = 1
            debug = 1
            inline = 1
            optimize = 0
            buildbits = 64
>>         threads = 1
>>         shared_libs=0
>>         static_libs=1
            CCFLAGS += -bbigtoc
>>         include $ACE_ROOT/include/makeinclude/platform_aix_ibm.GNU
>>
>>    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
>>    ssl=0 qos=1 cidl=0 rwho=0 sctp=0
>>
>>    AREA/CLASS/EXAMPLE AFFECTED:
>>        TAO CosLoadBalancing
>>
>>    DOES THE PROBLEM AFFECT:
>>        COMPILATION? Yes
>>        LINKING? No
>>            On Unix systems, did you run make realclean first? No
>>
>>    SYNOPSIS:
>>        Compiler error: PortableInterceptor not defined in LB_ORTC.h
>>
>>    DESCRIPTION:
I build ACE and TAO by running make. For GNUmakefile.CosLoadBalancing,
while compiling LB_ORTC.cpp, the following error occurs:

LB_ORTC.h, 109: The qualifier PortableInterceptor is not defined in the
current scope.
LB_ORTC.cpp, 239: An expression of type TAO_LB::ObjectReferenceFactory*
cannot be converted to type CORBA::ValueBase*

These files were generated by the IDL compiler.

Thanks for your help.

Ian


Ian Carter White
Software Engineer
Integrated Defense Systems - Raytheon
350 Lowell St. Andover, MA 01810
978. 470.9908
ian_c_white@...

#42936 From: Johnny Tucker <johnny_tucker@...>
Date: Thu Sep 29, 2005 6:57 pm
Subject: RE: Any good tools that exist for detecting memory corruption problems in C++ programs on Linux
johnny_tucker@...
Send Email Send Email
 
Yes...If my company doesn't or won't use ACE I'll quit or do Java. :)

DJ Stachniak <djstachniak@...> wrote:
Some pointless trivia for all of you:

I recently changed jobs and the decision came down to
two companies - one used ACE, one didn't.

Can you guess which way I went?

Why would I want to learn an internal socket/OS
abstraction library? What good does that do me in the
long run?

And so far in the 6 weeks I've been here I think I've
pretty much sold them on TAO as well for a new server
project.

Keep up the good work everyone!

D.J.


--- Johnny Tucker wrote:

> Thanks! I wish my company used ACE
>
> Johnny Willemsen wrote:Hi,
>
> Purify or valgrind, see www.valgrind.org.
>
> Johnny
>
> > -----Original Message-----
> > From: owner-ace-users@...
> > [mailto:owner-ace-users@...! ustl.edu] On Behalf
> Of Johnny Tucker
> > Sent: donderdag 29 september 2005 20:20
> > To: ace-users@...
> > Subject: [ace-users] Any good tools that exist for
> detecting
> > memory corruption problems in C++ programs on
> Linux
> >
> > Hi,
> >
> > Does anyone know of any good tools that exist for
> detecting
> > memory corruption problems in C++ programs on
> Linux?
> >
> > Thanks,
> > Johnny
> >
> >
> >
> > Johnny Tucker
> >
> > Newport Beach, CA 92663
> >
> > Phone: (626) 676-1548
> >
> >
>
>
>
>
>
> Johnny Tucker
>
> Newport Beach, CA 92663
>
> Phone: (626) 676-1548
>
>
>


D.J. Stachniak
djstachniak@...

!

Johnny Tucker

Newport Beach, CA 92663

Phone: (626) 676-1548


#42935 From: DJ Stachniak <djstachniak@...>
Date: Thu Sep 29, 2005 6:51 pm
Subject: RE: Any good tools that exist for detecting memory corruption problems in C++ programs on Linux
djstachniak@...
Send Email Send Email
 
Some pointless trivia for all of you:

I recently changed jobs and the decision came down to
two companies - one used ACE, one didn't.

Can you guess which way I went?

Why would I want to learn an internal socket/OS
abstraction library?  What good does that do me in the
long run?

And so far in the 6 weeks I've been here I think I've
pretty much sold them on TAO as well for a new server
project.

Keep up the good work everyone!

D.J.


--- Johnny Tucker <johnny_tucker@...> wrote:

> Thanks!  I wish my company used ACE
>
> Johnny Willemsen <jwillemsen@...> wrote:Hi,
>
> Purify or valgrind, see www.valgrind.org.
>
> Johnny
>
> > -----Original Message-----
> > From: owner-ace-users@...
> > [mailto:owner-ace-users@...] On Behalf
> Of Johnny Tucker
> > Sent: donderdag 29 september 2005 20:20
> > To: ace-users@...
> > Subject: [ace-users] Any good tools that exist for
> detecting
> > memory corruption problems in C++ programs on
> Linux
> >
> > Hi,
> >
> > Does anyone know of any good tools that exist for
> detecting
> > memory corruption problems in C++ programs on
> Linux?
> >
> > Thanks,
> > Johnny
> >
> >
> >
> > Johnny Tucker
> >
> > Newport Beach, CA 92663
> >
> > Phone: (626) 676-1548
> >
> >
>
>
>
>
>
> Johnny Tucker
>
> Newport Beach, CA 92663
>
> Phone: (626) 676-1548
>
>
>


D.J. Stachniak
djstachniak@...

#42934 From: Robert Iakobashvili <coroberti@...>
Date: Thu Sep 29, 2005 6:51 pm
Subject: Re: Problem with cross compilation
coroberti@...
Send Email Send Email
 
Hi Sylvain Archenault,

On 9/29/05, Sylvain Archenault <sylvain.archenault@...> wrote:
> Hello, I'm trying to cross-compile ACE. The target is arm-linux and host
> is a linux machine.
>
> When i run ../configure -host=arm
>
> When it comes to check for bind, it tells me :
> " Cannot run test program while cross-compiling"
>
> I already had this type of problems when cross-compile glib2, but in the
>    documentation I can find some help. I put some variables in a cache
> file .
> What are those variables for ACE ?
>
> Thanks
>
>

You may wish to use an old approach of using config.h
and platform_macros.GNU for building ACE.
-------------------------------------------------------
#here overrride setting for CC, CXX, AR, LD, e.g.
CXX=armeb-unknown-linux-unknown-g++
include platform-linux.GNU
-------------------------------------------------------

Settings for librt library, depending on the version of ACE you are using,
may require corrections to take the library not from the standard paths, but
from your cross.
You might wish to add COFLAGS to match your sub-architechture optimization,
etc.

What is your sub-arch/board?

Sincerely,

----------------------------------------------------------------
Robert Iakobashvili
coroberti at gmail dot com
----------------------------------------------------------------
        Errare humanum est
----------------------------------------------------------------

Messages 42934 - 42963 of 42992   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help