| View previous topic :: View next topic |
| Author |
Message |
Achim Berg Guest
|
Posted: Fri Nov 21, 2003 11:32 pm Post subject: TActionMainMenuBar and Threads |
|
|
TActionMainMenuBar starts 2 Threads when clicked for the first time. They
stay active until the application is closed.
Who knows why?
Achim
|
|
| Back to top |
|
 |
Steve Trefethen (Borland) Guest
|
Posted: Sun Nov 23, 2003 5:27 pm Post subject: Re: TActionMainMenuBar and Threads |
|
|
| Quote: | TActionMainMenuBar starts 2 Threads when clicked for the first time. They
stay active until the application is closed.
Who knows why?
|
Most likely what you are seeing are the threads used to process the Window's
sndPlaySound API which is used by the ActionBand menus to play menu sounds
asynchronously. The ActionBand menus themselves do not use threads.
--
-Steve
C# Builder/Delphi.NET R&D
Borland Software Corporation
My website: http://www.geocities.com/delphihelp
Save time search first: http://groups.google.com
ActionBand FAQ: http://www.geocities.com/delphihelp/info/ABFAQ.htm
How to Ask Questions the Smart Way: http://tinyurl.com/7r35
|
|
| Back to top |
|
 |
Achim Berg Guest
|
Posted: Tue Nov 25, 2003 8:59 am Post subject: Re: TActionMainMenuBar and Threads |
|
|
Hello Steve,
Well, if sndPlaySound( ) opened threads, they would not belong to the
Delphi-application, would they?
I set all sndPlaySound calls in unit ActnMenus to comment and still the 2
threads appear (visible in Task Manager).
So the miracle seems to persist..
besides- an old question again:
The ActionToolbar does not always reset the MouseOver-selection, when the
mouse leaves the symbols. This effect seems stronger on slow computers. Same
effect occured with your preliminary version in Delphi 6.
Got an idea?
best wishes, Achim
Steve Trefethen (Borland) wrote:
| Quote: | TActionMainMenuBar starts 2 Threads when clicked for the first time.
They stay active until the application is closed.
Who knows why?
Most likely what you are seeing are the threads used to process the
Window's sndPlaySound API which is used by the ActionBand menus to
play menu sounds asynchronously. The ActionBand menus themselves do
not use threads.
|
|
|
| Back to top |
|
 |
|