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

Expose Ready parser state event to COM API, to work with BeginParse #1239

Closed
retailcoder opened this Issue Mar 24, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@retailcoder
Copy link
Member

retailcoder commented Mar 24, 2016

Have the parser state raise a Ready() event when the parsing/resolving completes to Ready state, and make it possible for VBA code to handle ready state in an event handler.

@retailcoder retailcoder added this to the Version 2.0 milestone Mar 24, 2016

@retailcoder

This comment has been minimized.

Copy link
Member Author

retailcoder commented Mar 28, 2016

This is currently implemented (states Ready, Error and Parsed are exposed through events), but not working because parser state events are not invoked from the UI thread (see http://stackoverflow.com/q/36213087/1188513).

@retailcoder

This comment has been minimized.

Copy link
Member Author

retailcoder commented Mar 28, 2016

The COM events must simply be invoked from the UI thread - the code is otherwise perfectly fine.

@Hosch250

This comment has been minimized.

Copy link
Member

Hosch250 commented Jun 21, 2016

What's the status on this? Also, is there any way to make it fire with an argument for the user to analyze since we have so many interesting parser states now?

@retailcoder

This comment has been minimized.

Copy link
Member Author

retailcoder commented Jul 15, 2016

@Hosch250 status is unchanged: the event handler isn't invoked from the thread that the VBA code registered from, so handlers are null and no event gets raised.

@Vogel612 Vogel612 modified the milestones: Version 2.0, v2.1 Aug 29, 2016

@Vogel612 Vogel612 added the enhancement label Dec 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.