Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some methods subscribers are not invoked #60

Open
nivla opened this issue Aug 1, 2017 · 0 comments
Open

Some methods subscribers are not invoked #60

nivla opened this issue Aug 1, 2017 · 0 comments

Comments

@nivla
Copy link

nivla commented Aug 1, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant