I am trying to replicate in VB .NET the code found in the following article
http://support.microsoft.com/default...b;en-us;231298
Titled How To Use SetWaitableTimer With Visual Basic.
This is unfortunately posted as a VB6 solution. I have used it many times
and it works very well.
I have tried to do a direct port of this VB6 solution to VB .NET but I have
run into an unstable condition with blows up execution. It looks as if I
need to use a similar but managed approach.
My intention is to use this in a class which receives the time in
MilliSeconds or Seconds ( Not Important)
and spawns a thread which kills itself after a specified time. The reason
is that I am also wrapping a COM object
which posts a status to a property. I simply need to force a wait until
this status indicates that it is ready to continue.
I would like to use a separate class if possible or a set of functions to be
used with in the COM wrapper class would also be fine.
This is the last piece of my puzzle and any help would be greatly
appreciated.