Comment 2 for bug 1406179

Revision history for this message
Carlo Santucci (carlosanit1) wrote : Re: System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv (X2738, SLI BNSF Scenic Sub)

The crash occurs in following lines of TrainCar.cs:

            foreach (var soundSourceID in soundSourceIDs)
            {
                OpenAL.alSourcefv(soundSourceID, OpenAL.AL_POSITION, position);
                OpenAL.alSourcefv(soundSourceID, OpenAL.AL_VELOCITY, Velocity);
            }

so it could be caused by the fact that the list of soundsources is changed in the Sound process thread.