🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7757

Re: Display stalls during lengthy operation

#7757
From: Remy Lebeau (TeamB)
Date: Sun, 26 Dec 2004 22:15
18 lines
1573 bytes
"Feico" <feicorem0veth1s@gmx.net> wrote in message
news:grqrs05v4nf5kp38q1tqfq6in7qg2734m4@4ax.com...

> I tried that, in a Timer event, but it didn't work.

A TTimer won't work because it is also message-based, thus you would need to
call ProcessMessages() just to make the timer itself work.

You need to either:

1) call ProcessMessages() inside your actual length operation itself

2) move your lengthy operation to its own thread so that the main VCL thread
is no longer blocked at all. (recommended)


Gambit
Technical Details
Message-ID: <41cf37c6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <cl4rs05f9la28m5jqv654jcj92fknkieu9@4ax.com> <41cda3b9@newsgroups.borland.com> <grqrs05v4nf5kp38q1tqfq6in7qg2734m4@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a5e57d9d2fe172c8
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <cl4rs05f9la28m5jqv654jcj92fknkieu9@4ax.com> <41cda3b9@newsgroups.borland.com> <grqrs05v4nf5kp38q1tqfq6in7qg2734m4@4ax.com>
Subject: Re: Display stalls during lengthy operation
Date: Sun, 26 Dec 2004 14:15:49 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41cf37c6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104099270 68.69.17.41 (26 Dec 2004 14:14:30 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail