- Are you doing something special when the crash appears?
- Does it happen just after you've opened your application or only after a long while? This might indicate some memory leaking.
- Can you check if your number of GDI objects increase? This can be seen in the Task Manager, you probably need to add the column first.
- I see you use .NET Framework v4. MW v4.8 is build for .NET v3.5. Perhaps switching to that version might help.
-
In your trace I see some mentioning of threading. I don't think the legend control is thread-safe. Are you using threading or a background worker?
Paul