🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Phuoc Can HUA Wed, 30 Apr 2003 02:04
A simple way to run JPEG Load image in Background?
#16696
Author: Phuoc Can HUA
Date: Wed, 30 Apr 2003 02:04
11 lines
1132 bytes
I'm using TJPEGImage and LoadFromFile(). I would like my program continues 
while it's loading. Do I have to put the load picture in a TThread or 
there's an easier way?

Thanks
Phuoc Can HUA

-- 
_/\__/\__/\__/\__/\__/\_
www.huaonline.com
My Homepage is my Castle
Re: A simple way to run JPEG Load image in Background?
#16697
Author: Remy Lebeau (TeamB)
Date: Wed, 30 Apr 2003 03:36
13 lines
1381 bytes
"Phuoc Can HUA" <home}a+t{huaonline.com> wrote in message
news:oproe6pqc6bq7az6@newsgroups.borland.com...
> I'm using TJPEGImage and LoadFromFile(). I would like
> my program continues while it's loading. Do I have to put
> the load picture in a TThread

Yes.  A thread (whether the main thread or a worker thread) can only do 1
thing at a time.  To perform multiple operations at the same time, you need
multiple threads.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads