Article View: borland.public.cppbuilder.nativeapi
Article #14037Re: TThread can't be Resumed when the application is not Active (focused)?
From: Phuoc Can HUA
Date: Sat, 06 Sep 2003 14:04
Date: Sat, 06 Sep 2003 14:04
20 lines
2135 bytes
2135 bytes
Sorry, have to correct myself (2) still sometimes works and sometimes fails
with focus on 2nd form or icon. Before the change it has never worked as
soon as main form has lost focus.
On Sat, 06 Sep 2003 23:47:05 +1000, Phuoc Can HUA <home}-a-t-{huaonline-
dot}com> wrote:
> 1) The thread is running without any delay (playing music) even when I
> was using other application in foreground. It only hangs when the
> constructor is called and the main form is not focused.
> For my test, shortly before the next object is instantiated I click on an
> icon on the desk top. The program will lose focus and hang.
>
> 2) Currently, I've got it partially fixed. My program has 2 forms. Now
> I've moved the Resume and while loop to the main form. The problem in (1)
> doesn't occur any more. But now if I focus on the 2nd form (instead of an
> icon on desktop) it fails again.
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Technical Details
Message-ID:
<opru2z1gloypkypy@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<opru1z6kriypkypy@newsgroups.borland.com> <3f593c8b$1@newsgroups.borland.com> <opru2y8rz4ypkypy@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,453649a6bac9d07b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-06 07:04:57 PST
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: TThread can't be Resumed when the application is not Active (focused)?
References: <opru1z6kriypkypy@newsgroups.borland.com> <3f593c8b$1@newsgroups.borland.com> <opru2y8rz4ypkypy@newsgroups.borland.com>
Message-ID: <opru2z1gloypkypy@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: Phuoc Can HUA <home}-a-t-{huaonline-dot}com>
MIME-Version: 1.0
Date: Sun, 07 Sep 2003 00:04:18 +1000
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 203.213.53.98
X-Trace: newsgroups.borland.com 1062857032 203.213.53.98 (6 Sep 2003 07:03:52 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail