Automatically generated wrapper for COM object handles all events!

Proposed Answer Automatically generated wrapper for COM object handles all events!

  • Tuesday, October 19, 2010 7:26 AM
     
     

    Hello!

    I have a COM-object, and use it in my app.

    COM object raises many events and my app subscribed on some of this events.

    When I create this COM-object, my app loads the processor on 50%.

    I'm traced it with profiler and found that the processor is loaded by processing of events on which I didn't subscribe!

    Than I make a conclusion that .NET processes all events of COM object, and if my app is subscribed - raises my handlers.

    How I can disable subscribing on all events?? Or how I can generate Interop dll without events that i don't want to process?

All Replies