Globals and forms etc are likely irrelevant. If you don't know if you need
ControlInvoker there is no point using it... in my opinion.
"Mike" <Mike@discussions.microsoft.com> wrote in message
news:1534D6B5-7D3E-4A90-9D8D-D915CA57203A@microsoft.com...
> Daniel,
>
> Actually, I have several apps and they all seem to lock up on occasion.
> So
> I am obviously making the same mistake repeatedly. To answer your
> question
> about threads, yes I do find Threading when I search my project(s) but
> basically that is because I implemented a 'ControlInvoker' class I found
> via
> the web. I did this because of my hunch that I was causing my app to hang
> by
> populating controls on my form via global variables. But, I can
> guarauntee
> you that my app(s) were hanging before there was ever any mention of a
> thread. And yes, I do use 3rd party controls on occasion (but not in all
> my
> apps) including a serial control. Think that could be the cause?
>
> Thanks,
> Mike
>
>
> "Daniel Moth" wrote:
>
>> Do you use a Threading.Timer or the ThreadPool (search the project for
>> "Threading")?
>> Do you use any 3rd party controls or a component from opennetcf (e.g.
>> SerialPort)?
>>
>> Cheers
>> Daniel
>> --
>>
http://www.danielmoth.com/Blog/ >>
>>
>> "Mike" <Mike@discussions.microsoft.com> wrote in message
>> news:E428778E-E74C-4B1D-AC36-19EA26763FAA@microsoft.com...
>> >I have a very amatuerish question that hopefully someone can help me out
>> > with. I have an application that unpredictably hangs/locks on
>> > occasion.
>> > After scouring the newsgroups, it seems very clear that I must be
>> > improperly
>> > multithreading or updating controls. Where I get confused, is that no
>> > where
>> > in my app do I knowingly create threads (basically because I dont know
>> > how
>> > to
>> > use them)! Would using global variables to pass from form to form be
>> > considered a reason the application is locking and therefore a place to
>> > use
>> > Control.Invoke?
>> >
>> > Thanks!
>>
>>