On Wed, 04 Nov 2009, Horodyski Marek (PZUZ) wrote: Hi,
> >From my experience, GTWIN is working in MT without problem. > GTWVT / WVG for larger applications may hang the application (small > examples GTWVG work flawlessly). As I told you it's expected behavior and the problem is created by your own code. In MS-Windows only thread which created window can process window messages so if you are suing GTWVT or GTWVG the main thread should not be suspended or it will block other threads which will execute 'inkey(0)' or sth similar. Just simply incoming keys can be processed only by thread which created GTWVT window. It's documented MS-Windows behavior and programmers have to know about it because it effects all MS-Windows programs in all languages using any type of interface. Usually the easiest solution is leaving thread owner to only process window messages and create other threads to make real job. In some situations library author can create hidden thread to process window messages in the background and hide the problem at least partially for PRG programmers. GTWVT is type of program where it can be done though one feature blocks it and it will be necessary to disable it. It's HB_GTI_NOTIFIERBLOCK which cannot work when messages are processed by non HVM thread. When GTWIN is used then such hidden thread to process console window messages is created by system. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour