Article View: borland.public.cppbuilder.nativeapi
Article #23Re: Multi-threading...
From: Carl Danley
Date: Sun, 20 Jul 2008 18:00
Date: Sun, 20 Jul 2008 18:00
17 lines
1771 bytes
1771 bytes
Alright, one more question I have... Every time a user clicks my 'Check for
Updates' button, it creates the thread that does the checking... Should I
recreate that threat everytime the button is clicked, like so:
BiBtn1->OnClick() :
{
DWORD Id;
Thread = CreateThread(.....);
ResumeThread(Thread);
}
Will this cause any errors, or can i just recreate it everytime the button
is clicked? If it does create errors, is there anyway that I can have the
thread Resume and startover?
"Bob Gonder" <none@nowhere.invalid> wrote in message
news:g8o684tvboeu25bfol5rpb9ssq6oaqosmb@4ax.com...
Technical Details
Message-ID:
<48837d40$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4882cf55$1@newsgroups.borland.com> <g8o684tvboeu25bfol5rpb9ssq6oaqosmb@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b069f0aa9205a142 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Carl Danley" <cdanley@codebyter.com> From: "Carl Danley" <cdanley@codebyter.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4882cf55$1@newsgroups.borland.com> <g8o684tvboeu25bfol5rpb9ssq6oaqosmb@4ax.com> In-Reply-To: <g8o684tvboeu25bfol5rpb9ssq6oaqosmb@4ax.com> Subject: Re: Multi-threading... Date: Sun, 20 Jul 2008 14:00:34 -0400 Lines: 18 Organization: CodeByter Software MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 76.18.43.186 Message-ID: <48837d40$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1216576832 76.18.43.186 (20 Jul 2008 11:00:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail