by Nicholas Forystek (14 Submissions)
Category: VB function enhancement
Compatability: VB 6.0
Difficulty: Advanced
Originally Published: Mon 19th March 2018
Date Added: Tue 9th February 2021
Rating: (1 Votes)
This is a function named DoTasks that is a DoEvents alternative. It is not a replacement, it is intended to act similar and manage Stack Overflows while embedding into component and even script run-time and still keep the messaging handled on timely ordered fashion on the clock between the tiers while the application does looping waits. I started it in efforts to alleviate the processor usage reading to what it really appears unstressed about, which is continued window message handling not stalled, I had wrote this piece. I realized my net clock readings wouldn't be accurate unless my CPU clock was, and i wanted to continue to use just looping like it is easier verses the event driven model. Unconventional rapid app conduct to the efficiency nature was my applicable attitude. It does in fact call DoEvents as well. I read two other alternatives to DoEvents, and with those in mind, I decided to loop PeekMessage contrary to discussion and I kept running into Stack Overflows on the debug the paved path to each time I kept and found backing out variants to finish about 6 of them even crossing with sockets in the midst, sensitive to touch down on a connection as if it is hauling for two systems when the socket is open transferring..