[C# .NET] How to debug Timer event

489 views
Skip to first unread message

Abhi

unread,
Mar 18, 2009, 3:41:00 AM3/18/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I'm using Threading.Timer to asynchronously call function (using
TimerCallback) after some delay. The issue is, that function is not
getting called consistently. So how to debug the scenario?

TIA.

WildStrawberry

unread,
Mar 19, 2009, 8:10:39 PM3/19/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Maybe you could divide the problem by using System.Timers.Timer
(Elapsed event) which starts the Thread? And if you can't debub your
thread code with a breakpoint that generally means that thread... is
dead (was not started).

Grzegorz G. (www.wild-strawberry.eu)
Reply all
Reply to author
Forward
0 new messages