Hi Pierre-Andre,
PA Galmes wrote:
Hi Kay,
On 7/11/07, Kay Ramme - Sun Germany - Hamburg <[EMAIL PROTECTED]> wrote:
To make a long story short, I plan to remove the COM initialization from
SAL threads, which unfortunately is an incompatible change. Certainly I
am going to take care of our current implementations, to adapt them
appropriately.
Thanks for that interresting information. I still have a few questions
about this.
Sure :-)
- What are the impacts of your changes?
The impact is, and this actually is rendering the change incompatible,
that components relying on COM initialization (either MTA or STA) need
to be adapted to the change.
But the point is, that you currently _can_ _not_ _generally_ _know_ if
and how COM has been initialized in a thread calling your component, as
you me be called by the main thread, a SAL thread or a native thread. In
other words, initialization of COM is useless if not dangerous.
- What are the improvements your changes will bring?
Initialization of COM is useless, you can not rely on it anyway and it
may hinder you to do OLE.
Will it remove
bugs?
There may be bugs because of the different Apartment types used, e.g.
wrong assumptions of the Apartment and so on. These kind of bugs are
hart to spot and may be subtle.
Will it ease further development?
It is going to ease development on Windows, as you may use SAL threads
to do OLE as well, currently most (all) places using OLE are working by
luck only, or are using the Win32 API to create dedicated threads.
Is it mandatory for OOo to become thread-safe?
Not really, it just eases the usage of OLE, avoids bugs etc., please see
above.
- Will it impact third-parties developpers or only OOo internal devs?
It may impact third-parties, as it is an incompatible change. But code
impacted is IMHO buggy anyway, which is the reason that I think the
change is justifiable.
- Are there noticeable changes in the way we need to develop or use
OOo OLE objects?
No, not all, even contrary, there may be bugs wrt OOo OLE objects
because of wrong initialized COM apartments, which are going to be fixed
/ avoided.
Regards
Kay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]