<br><br><div class="gmail_quote">On Sat, Apr 24, 2010 at 5:19 AM, John Emmas <span dir="ltr"><<a href="mailto:johne53@tiscali.co.uk">johne53@tiscali.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Paul.  I eventually found the problem.  'AudioRegion::_fade_in' wasn't<br>
going out of scope but its 'events' list was becoming temporarily<br>
invalidated.  The crash was happening because in function<br>
AudioRegion::reset_fade_in_shape(), this call was being made:-<div class="im"><br>
<br>
reset_fade_in_shape_width ((nframes_t)<br>
                    audio_region()->fade_in().back()->when);<br>
<br></div>
when 'audio_region()->fade_in()' has no elements.  Here's some code that<br>
will illustrate the problem:-</blockquote><div><br>all sounds very reasonable, but i think you're fixing the symptom of some other problem. the fade in and fade out curves are set up in the AudioRegion constructor,and should never be empty. i'll take a look at the code a bit later to check that this "condition" is really satisfied, but that is certainly the expectation. <br>
</div></div>