com4j icon indicating copy to clipboard operation
com4j copied to clipboard

Some methods subscribers are not invoked

Open nivla opened this issue 8 years ago • 0 comments

I'm using com4j and it's working as expected but I've a problem when it comes to event subscribe that I can't figure out what's going on, when I subscribe my class some methods are invoked but some not.

fooClass.advise(IFooEvent.class, new FooEventImplementation()); this is an example of a method that is not invoked when the action occurs on the application com side, but I don't see errors or anything related.

   @DISPID(213) //this method is not invoked when the action occurs.
   public void onExit(
           int exitCode,
           java.lang.String description) {
       throw new UnsupportedOperationException();
   }

   @DISPID(214) //this method is invoked
   public void onLineChangedEvent() {
       throw new UnsupportedOperationException();
   }

Any idea what could it be?

Thanks beforehand.

nivla avatar Aug 01 '17 19:08 nivla