Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 May : SetTimer ... any experience of debugging problems ?

www.cryer.info
Managed Newsgroup Archive

SetTimer ... any experience of debugging problems ?

Subject:SetTimer ... any experience of debugging problems ?
Posted by:"Andrew Jameson" (conta..@softspotsoftware.com)
Date:Thu, 19 May 2005 09:41:43

Hi,
I'm working on code that makes quite a bit of use of SetTimer and am
experiencing occasional problems whilst debugging.  Occasionally, I find
that the IDE (Delphi 5) freezes on a break point or when closing the
application.  CPU resources hit 100% and it becomes virtually impossible to
even use the task manager to abort Delphi ... there are no warnings, AVs
etc. ... it simply freezes due the load !

The application is solid when run outside the IDE and if I remove the
SetTimer calls then I can run it in the IDE without problem although this
means that quite  few procs associated with the timers never get called
either.

I presume that Delphi's debugger might be the problem and maybe it gets
'confused' by the timers suddenly triggering as it starts debugging a
breakpoint ... or maybe it's something wrong with my code ? ...

Anyone seen this type of problem ? ... I've never questioned or delved into
how debugging actually works and how it handles background processes,
threads and timers ...

Andrew

Replies:

www.cryer.info
Managed Newsgroup Archive