off topic: multithread, dlgauto, gtwvg, mix

73 views
Skip to first unread message

José Quintas

unread,
Sep 18, 2024, 1:02:57 PM9/18/24
to Harbour Minigui
I use gtwvg + multithread + ado + mysql for a long time.
I use gtwvg from harbour 3.2 (or 3.4) using windows api and "dialog" style.

basic advantage on multithread: 
use (arquivo) 
CLOSE DATABASES
Not sure if this is important for SQLMIX or SQLRDD too.

My not common test:
Don't consider multithread error as library error.
Libraries are not ready to multithread.
May be considered not common situation when they works.
And may be considered near impossibile they works together.

test: Multithread + GTWVG + HWGUI + ( HMG Extended or FIVEWIN ) on same EXE

test1.png


test2.png

From a user point, without technical knowledge:
A dialog can works on a thread ?
On multithread will be several dialogs, one on each thread, could be any library.
But library do not need to limit to one dialog on each thread.

Error about modal window is more visible when using multithread.
Not sure if multithread will be better to detect/solve this question on libraries quickly.

I can change one dialog at a time on my application.
Multithread is not a problem to me, crash, close application on taskbar, it is a common situation on tests to me - at momment on tests only.

Just sharing tests.
Not common tests, not common errors.
I think it is interesting.
It is all.

Note:
Multithread is easy, but may be dangerous to application.
Do not change your application if you do not know what you are doing.
Think on multithread as another EXE: check default rdd, date format, and all harbour configuration to be sure you are using the same on all threads.

José M. C. Quintas

Reply all
Reply to author
Forward
0 new messages