Article View: borland.public.cppbuilder.nativeapi
Article #14912Re: aborting a function
From: Clayton Arends
Date: Sat, 26 Jul 2003 16:22
Date: Sat, 26 Jul 2003 16:22
13 lines
1520 bytes
1520 bytes
"JD" <nospam@nospam.com> wrote in message news:3f2278ff$1@newsgroups.borland.com... > Why not? You don't need a thread or a timer or a call stack - > just an an abort flag and two static variables: If the call to talk_to_hardware() doesn't return until after executing (several miliseconds to several seconds later) then none of the button clicks get processed until after ButtonClick() returns. The only way to avoid this scenario is by using a worker thread thus freeing up the main application thread to perform the task of managing Windows messaging. - Clayton
Technical Details
Message-ID:
<3f22aab5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f21a974@newsgroups.borland.com> <3f2278ff$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cb957e45a585bf2c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-26 09:28:04 PST From: "Clayton Arends" <nospam_claytonarends@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f21a974@newsgroups.borland.com> <3f2278ff$1@newsgroups.borland.com> Subject: Re: aborting a function Date: Sat, 26 Jul 2003 09:22:25 -0700 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 24.30.128.202 Message-ID: <3f22aab5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059236533 24.30.128.202 (26 Jul 2003 09:22:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail