[DUG] graphics stops updating
Ross Levis
ross at stationplaylist.com
Sun Jun 19 17:46:43 NZST 2005
Plain old integer variables are threadsafe. So rather than adding the
overhead of the stat object you suggested, I am simply assigning the
Left & Right values to Private global integers and accessing them with a
timer. It's been working perfectly for 10 minutes which is a record.
Cheers,
Ross.
----- Original Message -----
From: "Matt Comb" <matt at ferndigital.com>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
Sent: Sunday, June 19, 2005 5:35 PM
Subject: Re: [DUG] graphics stops updating
Yer the problem is that whatever you are executing in the event of this
audio component is running in that audio components thread also, so you
can't directly access anything from the main thread without making it
threadsafe first.
If you use the stats object as suggested I think you will be fine.
Catch ya,
Matt
More information about the Delphi
mailing list