Re: [Harbour] MT and hb_gtInfo() - Appln Locks

2008-11-26 Thread Pritpal Bedi
Przemek >Windows programmer have to carefully read MS documentation >and avoid any constructions which can create dead locks or race conditions. You are right on this issue. Now I understand your whole view point. What I could conclude from you analysis is that we need to devise some mechanis

Re: [Harbour] MT and hb_gtInfo() - Appln Locks

2008-11-25 Thread Przemyslaw Czerpak
On Fri, 21 Nov 2008, Pritpal Bedi wrote: Hi Pritpal, > > There is also yet another solution. You can create non HVM thread > > which will be used to create all windows and process their message > > queues. It will not make any other jobs so it will be always available > > and other threads which

Re: [Harbour] MT and hb_gtInfo() - Appln Locks

2008-11-21 Thread Pritpal Bedi
Przemek Przemyslaw Czerpak-2 wrote: > > There is also yet another solution. You can create non HVM thread > which will be used to create all windows and process their message > queues. It will not make any other jobs so it will be always available > and other threads which may call locking wind

Re: [Harbour] MT and hb_gtInfo() - Appln Locks

2008-11-21 Thread Przemyslaw Czerpak
On Thu, 20 Nov 2008, Pritpal Bedi wrote: Hi Pritpal, > Function Main() >hb_threadStart( {|| First() } ) >hb_threadStart( {|| Second() } ) >do while .t. >nKey := inkey( 0.2 ) >if nKey == 27 > exit >endif >enddo >Return nil > Function First() >

[Harbour] MT and hb_gtInfo() - Appln Locks

2008-11-20 Thread Pritpal Bedi
Hello Przemek Function Main() hb_threadStart( {|| First() } ) hb_threadStart( {|| Second() } ) do while .t. nKey := inkey( 0.2 ) if nKey == 27 exit endif enddo Return nil Function First() hb_gtInfo( HB_GTI_WINTITLE, 'My First Function' ) // App