🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Threads and Timer problem

#14623
From: Dumboo
Date: Tue, 05 Aug 2003 04:27
37 lines
1657 bytes
You can use Sleep in the Thread object

eg:

while(true)
{
    Sleep(5000);
    TriggerThisFunction();
}

"Paul E." <paulepst69@aol.com> wrote in message
news:3f2e2332@newsgroups.borland.com...
> sorry typing mistake it is
>
> Synchronize(RUNME);
>
>
>
> "Dumboo" <dumboo@nowhere.com> wrote in message
> news:3f2e061d@newsgroups.borland.com...
> > >         Synchronize(RUNME1);
> > .
> > .
> > .
> > > void __fastcall TIMConnection::RUNME(void)
> > > {
> > >     Mytimer = new TTimer(NULL);
> > >     Mytimer->Interval = 5000;
> > >     Mytimer->Enabled = true;
> > >     Mytimer->OnTimer=MytimerTimer;
> > > }
> >
> > ??? Where is RUNME1() ????
> >
> >
>
>
Technical Details
Message-ID: <3f2f2f02@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f2daa27@newsgroups.borland.com> <3f2e061d@newsgroups.borland.com> <3f2e2332@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ece7f64e3f770b72
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-04 21:17:35 PST
From: "Dumboo" <dumboo@nowhere.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f2daa27@newsgroups.borland.com> <3f2e061d@newsgroups.borland.com> <3f2e2332@newsgroups.borland.com>
Subject: Re: Threads and Timer problem
Date: Tue, 5 Aug 2003 09:57:42 +0530
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 203.115.90.244
Message-ID: <3f2f2f02@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060056834 203.115.90.244 (4 Aug 2003 21:13:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail