Re: [DUG] Why does this hang?

2011-08-03 Thread Ross Levis
.@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Paul Heinz Sent: Wednesday, 3 August 2011 12:39 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Why does this hang? Ross wrote: > The Timer.OnExecute I mentioned being run inside the loop > excludes some of t

Re: [DUG] Why does this hang?

2011-08-02 Thread Paul Heinz
Ross wrote: > The Timer.OnExecute I mentioned being run inside the loop > excludes some of the functions that are normally executed by > the timer, as these functions can not execute while we are > waiting on the thread. > > The timer cannot be idle. It's not just updating the UI but > doi

Re: [DUG] Why does this hang?

2011-08-02 Thread Ross Levis
z] On Behalf Of Paul Heinz Sent: Tuesday, 2 August 2011 4:04 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Why does this hang? Hi Ross > I can't remember now what problem I was having with > Application.ProcessMessages but this code fixed it while I > was

Re: [DUG] Why does this hang?

2011-08-01 Thread Paul Heinz
Hi Ross > I can't remember now what problem I was having with > Application.ProcessMessages but this code fixed it while I > was testing, and had to find tune the message numbers. I > failed to comment the code. I think it had something to do > with other visible non-modal forms. > > I may

Re: [DUG] Why does this hang?

2011-08-01 Thread Ross Levis
-boun...@delphi.org.nz] On Behalf Of Paul Heinz Sent: Monday, 1 August 2011 9:30 p.m. To: edwa...@bigfoot.com; NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Why does this hang? Edward wrote: > Not 100% sure, but I thought that your loop will not work if > the message on top of the q

Re: [DUG] Why does this hang?

2011-08-01 Thread Ross Levis
routine then hangs for a reason I'm sure one of you will know. Any way to resolve this? Cheers. -Original Message- From: Ross Levis [mailto:r...@stationplaylist.com] Sent: Tuesday, 2 August 2011 1:54 a.m. To: 'NZ Borland Developers Group - Delphi List' Subject: RE: [DUG] Why

Re: [DUG] Why does this hang?

2011-08-01 Thread Ross Levis
rland Developers Group - Delphi List' Subject: Re: [DUG] Why does this hang? Not 100% sure, but I thought that your loop will not work if the message on top of the queue is not falling into your range, and the message would remain on the queue (due to 'NOREMOVE' flag), and will

Re: [DUG] Why does this hang?

2011-08-01 Thread Jolyon Smith
ssage ID range.   Edward From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Thursday, 28 July 2011 11:17 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Why does this hang? A little more info.  I have MadEx

Re: [DUG] Why does this hang?

2011-08-01 Thread Paul Heinz
Edward wrote: > Not 100% sure, but I thought that your loop will not work if > the message on top of the queue is not falling into your > range, and the message would remain on the queue (due to > 'NOREMOVE' flag), and will be peeked everytime afterwards. > > Not sure which message MadExcept

Re: [DUG] Why does this hang?

2011-08-01 Thread Kyley Harris
to properly help we'd really need to have an understanding of what your wait loop is waiting for, and how its waiting.. you are most likely causing a deadlock where the handle message is passing it to something else that could be waiting for your wait to complete. The handle message could be forci

Re: [DUG] Why does this hang?

2011-08-01 Thread Edward Huang
ld well be outside of your message ID range. Edward _ From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Thursday, 28 July 2011 11:17 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Why does this hang? A

Re: [DUG] Why does this hang?

2011-07-28 Thread Ross Levis
A little more info. I have MadExcept operating and it detected "The application seems to be frozen." 77fa15ec ntdll.dll KiUserCallbackDispatcher 77e1567d user32.dllPeekMessageA KiUserCallbackDispatcher is where it is hanging. Fro