Re: [twsocket] TWSocket in thread in FireMonkey HD app for future crossplatform target

2012-10-29 Thread Hoby Smith
> Yes. In Windows anyway and in Posix there's Window's messaging emulated
(as it's needed to not change ICS' source code too much). In Posix a thread
doesn't have to call GetMessage(), 
> PeekMessage() that's the major difference.
> Unfortunately there's not yet a FMX threaded demo available, I'll try to
add one next weekend when I have a few hours.
> In the meanwhile take look at unit Ics.Posix.Messages and TIcsMessagePump
that implements the fake messaging in Posix and OSX. Also take a look at the
console demo IcsConSmtp in 
> PlatformDemos directory (has it changed at all?), console applications do
work very similar to ICS in a thread.

Thanks for the info, Arno.  :)

Hoby

--
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


Re: [twsocket] TWSocket in thread in FireMonkey HD app for future crossplatform target

2012-10-29 Thread Arno Garrels
Hoby Smith wrote:

> However, being that this thread is in a FireMonkey HD app, I am
> unsure how to proceed.  Do all the threading message pump issues
> still apply?  

Yes. In Windows anyway and in Posix there's Window's messaging emulated
(as it's needed to not change ICS' source code too much). In Posix a
thread doesn't have to call GetMessage(), PeekMessage() that's the major
difference.
Unfortunately there's not yet a FMX threaded demo available, I'll try to
add one next weekend when I have a few hours.
In the meanwhile take look at unit Ics.Posix.Messages and TIcsMessagePump 
that implements the fake messaging in Posix and OSX. Also take a look at
the console demo IcsConSmtp in PlatformDemos directory (has it changed at 
all?), 
console applications do work very similar to ICS in a thread.

-- 
Arno   

--
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