[Mono-dev] COM Interop - Lazy Initialization Patch

Paolo Molaro lupus at ximian.com
Mon Jan 15 11:27:41 EST 2007


On 01/12/07 Jon Chambers wrote:
>     This patch doesn't initialize COM types in the runtime until they are
> needed, and also renames the COM wrapper methods to something more
> understandable. I'll work on supporting the DISABLE_COM flag in the near
> future.

Do you really need all that many different wrapper type names?
A diffrent wrapper type must be used only if needed for some
semantic reason (like, it will be actually checked later at runtime
for some reason). They are a scarce resource and we can't have more than
32 (we have been adding them too happily in the past and also some of
the existing ones will go away).
So, unless there is a really strong reason, do not add to the types
(and if possible use a single type for it if one of the existing ones is
not appropriate already).

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list