🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #378

Re: .Net Threading Question

#378
From: Marc Rohloff TeamB
Date: Sat, 16 Apr 2005 14:22
19 lines
1969 bytes
On Sat, 16 Apr 2005 09:45:38 -0400, Arun Kumar wrote:

> What is wrong with this code. All i am trying to test is 3 progressbar and
> one button. On buttonclick i create 3 threads and each thread calls a method
> which in turn updates the progressbar and it works. I would to know if this
> can be used.
> I am using VS 2003.NET and what i see in Borland C# there are some changes 
> or mappings for delegates.

Maybe you should give us a description of what is happening! Doesn't
it compile, does it give an error when you run it or not do what you
expected? Also any error messages would be useful.

You know you shouldn't be updating UI controls from a different
thread?

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <1rdi8hyljsp81$.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newspeer1.se.telia.net!se.telia.net!tsicnews.teliasonera.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42611700$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,8bd714934cbc8abe
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: .Net Threading Question
Newsgroups: borland.public.csharpbuilder.language.csharp
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <42611700$1@newsgroups.borland.com>
Date: Sat, 16 Apr 2005 10:22:41 -0400
Message-ID: <1rdi8hyljsp81$.dlg@marcrohloff.40tude.net>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0515-4, 04/16/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 67.149.150.149
X-Trace: newsgroups.borland.com 1113661091 67.149.150.149 (16 Apr 2005 07:18:11 -0800)
Lines: 19
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newspeer1.se.telia.net!se.telia.net!tsicnews.teliasonera.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail