Re: [Harbour] Re: Harbour MT success report

2009-01-22 Thread Lorenzo Fiorini
On Thu, Jan 22, 2009 at 4:38 AM, Przemyslaw Czerpak wrote: > I've just committed such modification to XHGTK SVN repository. > 2009-01-22 04:11 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > Please make tests on different platforms. Many thanks, under Win it works perfectly. best regar

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Przemyslaw Czerpak
On Wed, 21 Jan 2009, Rodrigo Miguel wrote: Hi Rodrigo, > sorry for the dummy question, how about change the main to WinMain in > the code below when running on windows? It will be necessary to replicate all Harbour operations coded in source/vm/mainwin.c and include/hbwmain.c. I'd rather suggest

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Lorenzo Fiorini
On Wed, Jan 21, 2009 at 10:19 PM, Rodrigo Miguel wrote: > sorry for the dummy question, how about change the main to WinMain in > the code below when running on windows? I've tried but I get a gpf at the app start. best regards, Lorenzo ___ Harbour ma

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Rodrigo Miguel
sorry for the dummy question, how about change the main to WinMain in the code below when running on windows? int main( int argc, char * argv[] ) { if( gtk_init_check( &argc, &argv ) ) { hb_cmdargInit( argc, argv ); hb_vmInit( TRUE ); xhgtk_clean_items(); h

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Lorenzo Fiorini
On Wed, Jan 21, 2009 at 7:33 PM, Przemyslaw Czerpak wrote: > Just simply xhgtk/source/general.c contains main() function which is > detected by MinGW linker so it ignores -mwindows switch and creates > application with main() startup entry do it's not possible to use > any code which needs WinMai

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Przemyslaw Czerpak
On Wed, 21 Jan 2009, Lorenzo Fiorini wrote: > > Try to force it using -mwindows switch or removing [hb]mainstd from linked > > library list. > I've tried hbmk -mt -xhgtk -mwindows mttest10.prg but I get the same result. > But probably I don't understand well. > In hb-func.sh I see: > if [ "\${HB_CO

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Lorenzo Fiorini
On Wed, Jan 21, 2009 at 5:50 PM, Przemyslaw Czerpak wrote: > Try to force it using -mwindows switch or removing [hb]mainstd from linked > library list. I've tried hbmk -mt -xhgtk -mwindows mttest10.prg but I get the same result. But probably I don't understand well. In hb-func.sh I see: if [

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Przemyslaw Czerpak
On Wed, 21 Jan 2009, Lorenzo Fiorini wrote: Hi Lorenzo, > Sorry probably I was not clear enough. > I use only hb* scripts so -mwindows is added automatically. No it isn't. Neither -mconsole nor -mwindows is enabled by default in hb* scripts. > If under msys I build using: > hbmk -mt mttest10 >

[Harbour] Re: Harbour MT success report

2009-01-21 Thread Lorenzo Fiorini
On Wed, Jan 21, 2009 at 1:09 PM, Lorenzo Fiorini wrote: > Unfortunately the same approach doesn't work in Win. The main xhgtk > thread works but it cannot launch gtwvt threads. It returns: Instead under Mac OSX 10.5 it works exactly as in Linux ( if you have gtk and X11 installed of course ). b

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Lorenzo Fiorini
On Wed, Jan 21, 2009 at 1:24 PM, Przemyslaw Czerpak wrote: > This error is reported when application is not linked with > WinMain() startup point and it does not depend or xhgtk or > MT mode at all. If you are using MinGW then use -mwindows > liner switch and do not link with hbmainstd library.

Re: [Harbour] Re: Harbour MT success report

2009-01-21 Thread Przemyslaw Czerpak
On Wed, 21 Jan 2009, Lorenzo Fiorini wrote: Hi Lorenzo, > Unfortunately the same approach doesn't work in Win. The main xhgtk > thread works but it cannot launch gtwvt threads. It returns: > Application Internal Error - C:\dvl\src\ws\tas\out\tas.exe > Terminated at: 2009.01.21 11:48:40 > Unrecove

[Harbour] Re: Harbour MT success report

2009-01-21 Thread Lorenzo Fiorini
On Tue, Jan 20, 2009 at 6:51 PM, Lorenzo Fiorini wrote: > What I found really magic is that every thread can have his own GT and > even a different GUI. > In the test the main thread is a xhgtk app that creates a trayicon > with a popup menu that launch "the original" gtxwc apps ( sth like > Open