kishore_me...@yahoo.co.in wrote:
> Hi All,
> Iam facing problems with VB Timers and application is Running
[quoted text clipped - 10 lines]
> so, kindly help me to solve this problem and if any further
> clarification please mail me.
can i use threads in vb to avoid timers
Bob O`Bob - 25 Dec 2006 20:06 GMT
> kishore_me...@yahoo.co.in wrote:
>> Hi All,
[quoted text clipped - 12 lines]
>> clarification please mail me.
> can i use threads in vb to avoid timers
If you really mean real time, you won't get there with VB.
Windows is not capable of supporting true real time applications,
regardless of what one may try to write them in.
Bob
--
Mark Yudkin - 26 Dec 2006 08:36 GMT
1) VB Timers don't have a 5ms granularity.
2) VB6 doesn't support multi-threading (you can go through hoops though, see
Matthew Curland's book).
3) I assume that you're using the phrase "running in real time" outside of
its normal meaning and is merely a bad formulation. Neither VB6 nor XP are
suitable for real real-time systems.
You may be able to get want you want using a multimedia timer (time* API); I
have not tried it. You will need to be familiar with writing callbacks in
VB6 (see McKinney's book for a good introduction).
> kishore_me...@yahoo.co.in wrote:
>> Hi All,
[quoted text clipped - 12 lines]
>> clarification please mail me.
> can i use threads in vb to avoid timers
Frames? What sort of data is this? What is the source?
As other responders have said, Timers do not provide anything resembling
real-time suport (you can see the link Real-time under PC Data Acquistion on
my web site for some thoughts).
However, it may be possible to do what you want to do. I doubt that a
timer-driven approch will work, though.
Dick

Signature
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.