Re: vb.net Threading Question
- From: "mmitchell@xxxxxxxxxxxxxxxxxxxxxx" <mmitchell@xxxxxxxxxxxxxxxxxxxxxx>
- Date: 27 Jun 2005 12:26:52 -0700
I think I have found my answer in on-line help..
Returning values from procedures that run on separate threads is
complicated by the fact that the procedures cannot be functions and
cannot use ByRef arguments. The best way to return values is to have
your multithreaded procedure call a procedure in your application, and
then pass the results as arguments. To do this, raise an event when a
task is done, and process the results with an event handler.
The following example returns a value by raising an event from a
procedure running on a separate thread:
.
- Follow-Ups:
- Re: vb.net Threading Question
- From: Armin Zingler
- Re: vb.net Threading Question
- References:
- vb.net Threading Question
- From: mmitchell@xxxxxxxxxxxxxxxxxxxxxx
- Re: vb.net Threading Question
- From: Armin Zingler
- vb.net Threading Question
- Prev by Date: Re: convert date and time formats
- Next by Date: Re: Execute on Focus
- Previous by thread: Re: vb.net Threading Question
- Next by thread: Re: vb.net Threading Question
- Index(es):
Relevant Pages
|