Re: delegate question!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I understood all the way upto Invoke part. Forgive my ignorance, but I
couldn't understand the delegate part. Here is my question;

My long process runs in a seperate thread. On the completion, the
complete program also stays in the same thread. Here in the worker
thread, I am creating a delegate, which doesn't have any connection to
the main thread( or does it???). How does the begin invoke on the
worker thread connects to the main thread?????

Thank you for the patience.
DBC

.



Relevant Pages

  • Re: UI & Worker thread communication
    ... > just call Invoke on that control, passing a delegate and the parameters ... >> I'm trying to decide on the right approach for communication between ... >> communicate status from the worker thread back to the UI thread. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: AsyncCallback / IAsyncResult
    ... Do I really need an AsyncCallback in this setting? ... >>>> If I understand you correctly, notificationCallback is the method ... >> Thread A is the thread that starts the worker thread. ... > when thread B has done working and is about to stop, it calls the delegate ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: threads co-ordinating access to a method
    ... a delegate to the Invoke method on a control that is on the UI thread. ... Call it class IPdevice. ... method to send commands and then wait for a response from this ... Whats the best way to handle gui update from a worker thread? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: UI and worker thread
    ... >> My main UI thread needs to create a worker thread. ... > Use Control.Invoke - that makes sure the specified delegate is called ... Invoke will indeed 'serialize' it. ... These are all methods of the ISynchronizeInvoke interface. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Help need with POSTMESSAGE function in C#
    ... thread available to the worker thread. ... Invoke, passing a delegate, and the parameters that are to be passed to the ... I have a Timer that checks once every milli second to see if there is any data avaialable to read at the serial port. ...
    (microsoft.public.dotnet.languages.csharp)