09-20-2018, 04:08 PM
I finally solved that issue.
To those who may have a similar problem:
the problem wasn't the Linesvisual3D, but EventSource which didnt Dispose automatically, since the reference in the eventmanager still existed.
The solution was to put all visuals with Events (TextVisual3D, Planevisual3D) into a dedicated collection and when deleting the scene, first remove (foreach) them by "ab3d.Eventmanager.RemoveEvenetsSource3D. The rest is dont by the GC
To those who may have a similar problem:
the problem wasn't the Linesvisual3D, but EventSource which didnt Dispose automatically, since the reference in the eventmanager still existed.
The solution was to put all visuals with Events (TextVisual3D, Planevisual3D) into a dedicated collection and when deleting the scene, first remove (foreach) them by "ab3d.Eventmanager.RemoveEvenetsSource3D. The rest is dont by the GC

