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
particular workarounds ? The thread in part reads:
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.
App.Run:
Function Run(args() as String) As Integer
DebugLogTimer = New ConsoleTimer
DebugLogTimer.Setup
While True
App.DoEvents (100)
Wend
End Function
ConsoleTimer.Setup:
Sub Setup()
Me.Period = 1000
Me.Mode = 2
Me.Enabled = True
End Sub
ConsoleTimer.Action:
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
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>