I have a program which creates a popup from the main panel. The popup has a canvas and two buttons which are created on the fly. Both have the callback function "X". Calling X with the event double left click deletes both original buttons and replaces them with two more with "X" as the callback function. I can trace all this through debug code.
The program locks up but will respond after running another program ( eg Spy).
SetActive or ProcessSystemEvents does not solve the problem.I tried DisplayPanel for both.
The system refuses to break in these lock ups.
Smells of Windows/ redraw problems. Has anyone experienced a similar problem or have any ideas?.
Best Regards
Ken