On Wed, 22 Oct 2008, Massimo Belgrano wrote:

Hi Massimo and Pritpal

> I have same problem, can you explain how you have resolved

GTWVT is GUI code and in BCC such applications need special linker
switch AFAIR -tW. Probably adding:
   set C_USR=-tW
should be enough.
We should probably think about adding MessageBox() call in Windows
builds and executes it under some conditions, f.e. errors in startup
code. It should help user to locate problems like above. GTWVT generates
internal error:
      hb_errInternal( 10001, "It's not a GUI program", NULL, NULL );
In such case.

BTW I tested this code only in Linux using native builds with GTXWC and
and cross compiled Windows MinGW builds with GTWVT and both works correctly.
Anyhow both GT drivers uses some static variables which may need additional
protection code for clean MT mode. It's probably not critical but for sure
have to be done. It will be also good to create non HVM thread for GTWVT
which will make all internal screen updates and keyboard/mouse polling
asynchronously to other threads.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to