Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

[Question] Access bridge 200ms delay after initialization #2

Open
rrelaxx opened this issue Aug 9, 2016 · 1 comment
Open

[Question] Access bridge 200ms delay after initialization #2

rrelaxx opened this issue Aug 9, 2016 · 1 comment

Comments

@rrelaxx
Copy link

rrelaxx commented Aug 9, 2016

Trying to build around this code small utility to dump Java window content every 1sec - for logging frequently updated data.
However, current implementation build around 200ms delay before first refresh of JVM tree for some reason.
ExplorerFormController.cs:

private void PostRefreshTree() {
      _delayedRefreshTree.Post(TimeSpan.FromMilliseconds(200), () => {

Decreasing this limit results in empty returning list from EnumJvms() call (somewhere around 50ms delay on my machine).

Is it possible to get jvm content without this wait limit?
Thanks in advance for any info!

@rpaquay
Copy link
Contributor

rpaquay commented Aug 19, 2016

As you noticed, EnumJvms returns an empty list the first time it is called just after initializing the AccessBridge DLL. I don't quite understand why, so I ended up adding the 200 msec delay to workaround the issue.

So, to answer your question: It may be possible to avoid the wait limit, but I don't know how (or even if it is possible).

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

No branches or pull requests

2 participants