471,337 Members | 1,098 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Threading and Timers - Help me Please.

I am trying to replicate in VB .NET the code found in the following article

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
Jul 21 '05 #1
0 843

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Rajesh Abraham | last post: by
5 posts views Thread by Deiussum | last post: by
2 posts views Thread by linesh.gajera | last post: by
reply views Thread by Kelsang Wangchuk | last post: by
8 posts views Thread by NewUser | last post: by
4 posts views Thread by Giovanni | last post: by
8 posts views Thread by Luc | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.