Blazor.Diagrams icon indicating copy to clipboard operation
Blazor.Diagrams copied to clipboard

Exception in DiagramCanvas due to race condition

Open toluwtglobal opened this issue 1 year ago • 1 comments

In DiagramCanvas reference error is thrown when un-subcribing from resize event during dispose. This is cause by race conditions as the method is executing synchronously. WE have created a PR for making the execution asynchronous. See PR link below.

https://github.com/Blazor-Diagrams/Blazor.Diagrams/pull/453

toluwtglobal avatar Jun 27 '24 20:06 toluwtglobal

Hi, I got the same issue, but even with the changes in the pullrequest I sometimes get an exception by the canvas already being disposed when calling ObserveResizes. Checking if the Canvas has been disposed before fixed this.

TimJoehnk avatar Jul 09 '24 13:07 TimJoehnk