Hello, everybody,

   It seems that I faced a problem of THttpCli component used in thread.

The problem is like below.

1. First in my application, I have a main form, form1, in form1, I create
an manager thread, named managerThread;

2. In the managerThread, I create THttpCli component with Nil param.

The problem is that, as THttpCli component is created in a thread, which is
also not main thread.
THttpCli.Get method always give me timeout error.


If I simplely create THttpCli in my manager thread, then everything is ok.

The reason I need managerThread is that I use this thread to do some manage
work, such as cache saving or else.

BTW: I've already set MultiThreaded to be true.

Anyone has thoughts for this problem?


Thanks

Regards
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to