I’m a little stuck on this one. I’ve been using Web apps to control shell processes for years but with 2.0 I’m struggling to understand some bugs.
I have an interactive shell that completes a process and fires a dataAvalable event. The issue is that this event often doesn’t catch all the data coming in. But never fires again. Ie, I’m reading a WMIC path in windows 10 and might get half of it. If I put a breakpoint in my code then it completes fine and I can read the entire response. This seems new to Web2 and my thought was to fire a timer from the dataAvailable event to wait a while and then run a readily, but this doesn’t work either. My timer (initiated in code) never fires as I believe it’s going out of scope before it fires for some reason.
Has anyone had success in this area or tell me what’s changed between Web1 and Web2 in this space? I seem to becoming up against a number of issues that I’m hoping are just me… controls going out of scope quickly seems to be the biggest issue.