Article View: borland.public.cppbuilder.nativeapi
Article #16265TThread with messages
From: Lapo
Date: Sun, 25 May 2003 00:12
Date: Sun, 25 May 2003 00:12
18 lines
1673 bytes
1673 bytes
Hi all, I'm coding a program to show a serie of jpeg from a network camera in a TImage. Following suggestions of this newsgroup, I used a TThread to get a jpeg and to show one after another. I used the Synchronize method to update the TImage content. Now the question: I see that every time the TImage is updated using Synchronize, as a said before, the Thread seems freezed until the updating is done. Well, I read something about PostMessage/SendMessage to communicate from Thread to Main Application, so the thread can ask the main application to update the TImage and it doesn't wait for the updating is over. I tried to manage it, but I'm lost. Maybe somebody have a sample or an url or a code snip... I really hope it. Thanks anyway Lapo
Technical Details
Message-ID:
<3ed00a13@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9f6b69458a9a485d,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-24 17:17:51 PST From: "Lapo" <lapoguidi@inwind.it> Newsgroups: borland.public.cppbuilder.nativeapi Subject: TThread with messages Date: Sun, 25 May 2003 02:12:26 +0200 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.98.131.167 Message-ID: <3ed00a13@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1053821459 62.98.131.167 (24 May 2003 17:10:59 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail