Skip to content

Problem with Events  #4

@AGenius

Description

@AGenius

If anyone knows why, please help

I have an Event that is raised for logging messages from the API flow

If the event is raised in the main API all is good and the display of the message in a text box or other control works fine.

If I an event is raised via a message in the Auth client inside the API the update of the control fails with an error about multi threading.

If I try to use the InvokeRequired check which has worked for other multi thread issues in the past it just stalls the API

if (lstResults.InvokeRequired) { lstResults.Invoke((MethodInvoker)delegate { UpdateStatus(sText, lstResults); }); } else {

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions