Discussion:
Timers in RB 5.5.5 Console Apps don't work ?
James McCarthy
2007-01-16 11:48:26 UTC
Permalink
Hello list !

I also have a thread on the windows forum:
http://forums.realsoftware.com/viewtopic.php?t=10456
(Apologies for the duplication, but the forums/mailing lists
seem to have different audiences). I'm compiling on Windows,
for Windows in this case.

It seems timers are buggy in RB 5.5.5 when building console apps ..
Does anyone have any experience regarding this or recall any
I have a simple console app which compiles and works fine under
2005R4. The source is pretty much as follows, (I've been trying
variations) and App has a property: DebugLogTimer As ConsoleTimer,
to prevent the timer from going out of scope.
Function Run(args() as String) As Integer
DebugLogTimer = New ConsoleTimer
DebugLogTimer.Setup
While True
App.DoEvents (100)
Wend
End Function
Sub Setup()
Me.Period = 1000
Me.Mode = 2
Me.Enabled = True
End Sub
Sub Action()
System.DebugLog "The Action Event of ConsoleTimer Class has fired !"
End Sub
Using 5.5.5 it will compile and run ok, (looping ad infinitum until I
stop it)
but there is never any output to the debuglog, unlike with 2005R4.
For some reason I cannot get the same project to work correctly using
5.5.5 ?
I'm sure I'm using the same basic concept, if not in fact exactly the
same code ..
but I'm missing something subtle ? or obvious ? Rolling Eyes
I would switch to 2005R4 altogether, although there are other bugs there
I'd rather
not have to get involved with at this time for this project, although I
may not have a
choice.

There have been some suggestions about resetting timer properties, like
mode or
period in the timer action event to prod it along, but I can't seem to
get that working
either. Does anyone here have a sample project or some sample code in
which a timer
will work ok in an RB 5.5.5 Console App ?

As always, any and all feedback appreciated !
JamesMc
Michael Rebar
2007-01-19 00:32:38 UTC
Permalink
Post by James McCarthy
Hello list !
http://forums.realsoftware.com/viewtopic.php?t=10456
(Apologies for the duplication, but the forums/mailing lists
seem to have different audiences). I'm compiling on Windows,
for Windows in this case.
It seems timers are buggy in RB 5.5.5 when building console apps ..
Does anyone have any experience regarding this or recall any
James,

I finally got on a box today with 5.5.5 -- I can confirm the bug and spent
10 minutes trying to find a workaround.

No dice.

Michael
RBNUBE
2007-01-19 00:40:04 UTC
Permalink
Same here...

Loading...