Try Catch in Release sound3d Module
BlitzMax Forums/BlitzMax Programming/Try Catch in Release sound3d Module
| ||
I'm using Ziggy's sound3d module and it keeps failing in Release mode, The code it keeps failing on is Try SetPosition(TVector.Create(EntityX(Source, True) , EntityY(Source, True) , EntityZ(Source, True))) Local ED:Float = Abs(EntityDistance(source, sListener3D.ent)) * sListener3D.ScaleFactor If ed <.5 Then ED =.5 channel.SetVolume(100:Float * _logicalvolume / ED) Catch o:Object 'DebugStop() 'Somethimes the hook is fired before a died item is collected from the tlist! End Try Last edited 2011 |
| ||
Maybe the emitter should be released before the object is considered "collectable"? If you give me a complete sample, I'll happily try to fix it. |