Hi,

We have in ACE a Singleton template that is implemented in a C++ template
with a static member. 

We are now using a test program that is linked with the ACE dll and checks
this singleton pointer. The program uses another dll that also uses ACE, but
there the singleton pointer is different, so we don't have concrete
singleton.

This does work with msvc for ARM, doesn't work with CEGCC for x86 (haven't
tried CEGCC/ARM yet).

Does this ring a bell to someone? We are not using the GCC 4 visibility
feature?

Danny, the reproducer program is ACE_wrappers/tests/Based_Pointer_Test.cpp,
see line 136 for the test that fails. It uses the Based_Pointer_Test_Lib.cpp
for the second DLL.

The error we get is:

May 14 14:41:23.247 2...@lm_debug@(85065734|85131270) Starting
Based_Pointer_Test test at Thu May 14 2009 14:41:23.250000
May 14 14:41:23.397 2...@lm_error@ACE_Based_Pointer_Repository is not a
singleton in DLL 1A028614 1A0271D4
May 14 14:41:23.485 2...@lm_error@MMAP pool mapping not present
May 14 14:41:23.547 2...@lm_error@Persistent MMAP Memory Pool not mapped
May 14 14:41:23.746 2...@lm_error@New base address not mapped after MMAP
remap
May 14 14:41:23.777 2...@lm_debug@(85065734|85131270) Ending
Based_Pointer_Test test at Thu May 14 2009 14:41:23.777000

Does this ring a bell to someone?

Regards,

Johnny 


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to