none
CellChange event fired randomly on Visio 14 ActiveX control RRS feed

  • Question

  • Hi,

    Ive got a problem with the CellChange event.

    I'm subscribing the event on the Page to be able to receive all shape data change as mentionned on this post :

    http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/6b25e869-4f8c-46bd-8f48-9de1c4ff8905

    Before i was subscribing directly on the cell CellChange event, as in the post.

    But in the two way, events are fired randomly :/

    Can someone help me ?

    Saturday, September 24, 2011 3:59 AM

Answers

  • I am looking for 3 hours and as usual I find the answer 20minute after asking my question ...

    This helpfull post about an event problem in outlook VSTO help me : http://stackoverflow.com/questions/202212/outlook-vsto-not-firing-on-newmailex-event


    As mentioned :

    The reason is: "GC collect the .NET object, whichc wrapps COM object from Outlook )". The solution is hold reference to this .NET object.

    So i keep a référence on each pages and it work. Now the event is fired everytime :D

    Hope this will help other people with the same problem ^^

    Saturday, September 24, 2011 4:35 AM