Hi,

I'm currently implementing some CosCollection based classes. When testing the 
implementation I'll receive about 20% or more BAD_OPERATION exceptions on 
methods sending to my collections created for tests. When debugging I found 
that my collection factory will receive messages (like add_element()) directed 
to its formerly created collection objects.

After days of debugging and code review I didn't find the reason of this 
failure but found a workaround:
Instead of activating my collections and other objects like collection 
iterators or Operations objects using POA::activate_object() which implicitly 
generates an ObjectId, I better use POA::activate_object_with_id(). When 
generating my own process-wide unique ID I'll never get BAD_OPERATIONS any more.

I'm developing and testing on MacOSX 10.8 in 32-bit memory mode using Xcode 
with LLVM gcc 4.2 compiler-suite.

Ciao
Thomas

--
Thomas Schmidt
Velgen 1
D-29582 Hanstedt
Tel: +49-4134-236339
Mobil: +49-151-23095598
Skype: ThCSchmidt
Email: tc.schm...@gmx.net
PGP: Key-ID: 0x810B6206

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Mico-devel mailing list
Mico-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mico-devel

Reply via email to