Who loaded the lib that contains the proc that you called in your test thread, the test thread itself or the main thread?
Just to clarify the calling order:
In example it is the main thread who =>
1) Load dynamically the library
2) Create the thread.
3) Do thread.execute => the thread.execute procedure is the main procedure exported in library.
4) Create his own form.
In attachment the great challenge of this winter
(need fpGUI package) =>
1) Compile (with -fPIC parameter) the library =>
graout.pas2) Compile and Run
progfpgui_graout.pasAll is permised => using TThread, TProcess, direct access, ...
And the Winner will be the one who can show the 2 forms working...
The Winner will get the Nobel Price of FPC too.
Fre:D