Good Evening, dear fellows,
I am just trying my first steps with fpWeb and the standalone http server.
In addition to the standard framework I added a data module which I instantiated within the main application:
begin
Application.Title:='webserver';
Application.CreateForm(TdmMain, dmMain);
Application.Port:=4040;
Application.LegacyRouting := False;
Application.Threaded:=True;
Application.Initialize;
Application.Run;
end.
The web application itself is multithreaded, and so I want to synchronize some activities with the main thread. In "normal" (GUI) applications I call therefor TThread.Queue(@do_something) and everything works fine. In TCustomHTTPApplication, nothing will happen, and with a TThread.Synchronize the program will hang completly.
Has anyone a clue what is missing or what I am doing wrong here?
Kind regards,
Sir Twist